Skip to content

Commit

Permalink
feat(example): 增加__DEV__
Browse files Browse the repository at this point in the history
  • Loading branch information
kaokei committed Aug 4, 2021
1 parent 35d4878 commit 757b7ef
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 28 deletions.
4 changes: 4 additions & 0 deletions example/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const { VueLoaderPlugin } = require('vue-loader');
const { DefinePlugin } = require('webpack');

module.exports = {
mode: 'development',
Expand Down Expand Up @@ -69,6 +70,9 @@ module.exports = {
],
},
plugins: [
new DefinePlugin({
__DEV__: JSON.stringify(true),
}),
new HtmlWebpackPlugin({
filename: 'index.html',
template: './example/index.html',
Expand Down
Loading

0 comments on commit 757b7ef

Please sign in to comment.