[Build] upgrade to webpack-serve (#1056)

This commit is contained in:
neverland
2018-05-13 09:04:58 +08:00
committed by GitHub
parent d2fe21d45d
commit 3b57e33654
6 changed files with 585 additions and 648 deletions

View File

@@ -14,14 +14,11 @@ module.exports = {
publicPath: '/',
chunkFilename: 'async_[name].js'
},
devServer: {
serve: {
open: true,
host: '0.0.0.0',
stats: 'errors-only',
historyApiFallback: {
rewrites: [
{ from: /^\/zanui\/vant\/examples/, to: '/examples.html' },
{ from: /^\/zanui\/vant/, to: '/index.html' }
]
dev: {
logLevel: 'warn'
}
},
resolve: {