增加pwa判断环境
This commit is contained in:
@@ -144,6 +144,14 @@ const webpackConfig = merge(baseWebpackConfig, {
|
||||
from: path.resolve(__dirname, '../static'),
|
||||
to: config.build.assetsSubDirectory,
|
||||
ignore: ['.*']
|
||||
},
|
||||
{
|
||||
from: path.resolve(__dirname, '../sw.js'),
|
||||
to: config.build.assetsSubDirectory
|
||||
},
|
||||
{
|
||||
from: path.resolve(__dirname, '../manifest.json'),
|
||||
to: config.build.assetsSubDirectory
|
||||
}
|
||||
])
|
||||
]
|
||||
|
Reference in New Issue
Block a user