[Build] enable site pwa (#3736)

This commit is contained in:
neverland
2019-07-03 16:10:45 +08:00
committed by GitHub
parent 66459df72a
commit 3dd881a84d
14 changed files with 357 additions and 191 deletions

View File

@@ -2,17 +2,10 @@ const path = require('path');
module.exports = {
publicPath: process.env.NODE_ENV === 'production' ? '/vant/' : '/',
productionSourceMap: false,
pages: {
index: {
entry: 'src/desktop/main.js',
template: 'public/index.html',
filename: 'index.html'
},
mobile: {
entry: 'src/mobile/main.js',
template: 'public/index.html',
filename: 'mobile.html'
}
index: 'src/desktop/main.js',
mobile: 'src/mobile/main.js'
},
chainWebpack: config => config.resolve.extensions.prepend('.md'),
configureWebpack: {