Skip to content

Commit 3c698d2

Browse files
committed
declare vue config explicitly (as the default), otherwise there will be a warning in console log
1 parent 5f23218 commit 3c698d2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

webpack.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,10 @@ export default {
196196
],
197197
},
198198
plugins: [
199+
new webpack.DefinePlugin({
200+
__VUE_OPTIONS_API__: true, // at the moment, many Vue components still use the Vue Options API
201+
__VUE_PROD_DEVTOOLS__: false, // do not enable devtools support in production
202+
}),
199203
new VueLoaderPlugin(),
200204
new MiniCssExtractPlugin({
201205
filename: 'css/[name].css',

0 commit comments

Comments
 (0)