From 837474f179e726aa0bc175b71797e2ac12aa8493 Mon Sep 17 00:00:00 2001 From: Angelina Filippova Date: Mon, 8 Mar 2021 23:57:11 +0800 Subject: [PATCH] Update webpack config to generate render function --- build/webpack.dev.conf.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/build/webpack.dev.conf.js b/build/webpack.dev.conf.js index 1b6d4d75..85086449 100644 --- a/build/webpack.dev.conf.js +++ b/build/webpack.dev.conf.js @@ -48,7 +48,7 @@ const devWebpackConfig = merge(baseWebpackConfig, { poll: config.dev.poll }, headers: { - 'content-security-policy': "base-uri 'self'; frame-ancestors 'none'; img-src 'self' data: https: http:; media-src 'self' https:; style-src 'self' 'unsafe-inline'; font-src 'self'; manifest-src 'self'; script-src 'self';" + 'content-security-policy': "script-src 'self' 'unsafe-eval'; base-uri 'self'; frame-ancestors 'none'; img-src 'self' data: https: http:; media-src 'self' https:; style-src 'self' 'unsafe-inline'; font-src 'self'; manifest-src 'self'" } }, plugins: [ @@ -67,7 +67,12 @@ const devWebpackConfig = merge(baseWebpackConfig, { BASE_URL: devEnv.ASSETS_PUBLIC_PATH + config.dev.assetsSubDirectory, }, }), - ] + ], + resolve: { + alias: { + vue: 'vue/dist/vue.js' + } + } }) module.exports = new Promise((resolve, reject) => {