Skip to content
This repository was archived by the owner on Jun 29, 2021. It is now read-only.

Commit de5bea4

Browse files
committed
feat: configure feature flags
1 parent c15d086 commit de5bea4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

webpack.config.js

+5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
const path = require('path')
2+
const webpack = require('webpack')
23
const { VueLoaderPlugin } = require('vue-loader')
34
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
45

@@ -44,6 +45,10 @@ module.exports = (env = {}) => ({
4445
new VueLoaderPlugin(),
4546
new MiniCssExtractPlugin({
4647
filename: '[name].css'
48+
}),
49+
new webpack.DefinePlugin({
50+
__VUE_OPTIONS_API__: 'true',
51+
__VUE_PROD_DEVTOOLS__: 'false'
4752
})
4853
],
4954
devServer: {

0 commit comments

Comments
 (0)