[bugfix] Icon template (#1091)

This commit is contained in:
neverland
2018-05-17 17:18:23 +08:00
committed by GitHub
parent 22cff2faec
commit e73e950662
7 changed files with 12 additions and 7 deletions
+3 -1
View File
@@ -2,7 +2,9 @@ const path = require('path');
const config = require('./webpack.dev.js');
const isMinify = process.argv.indexOf('-p') !== -1;
module.exports = Object.assign({}, config, {
delete config.serve;
module.exports = Object.assign(config, {
mode: 'production',
entry: {
'vant': './packages/index.js'
+4 -2
View File
@@ -1,7 +1,9 @@
const path = require('path');
const devConfig = require('./webpack.dev.js');
const config = require('./webpack.dev.js');
module.exports = Object.assign({}, devConfig, {
delete config.serve;
module.exports = Object.assign(config, {
mode: 'production',
output: {
path: path.join(__dirname, '../docs/dist'),