Commit a87cf93c by wangshuo

打包目录修改

parent 5082d07b
...@@ -166,11 +166,11 @@ module.exports = function(webpackEnv) { ...@@ -166,11 +166,11 @@ module.exports = function(webpackEnv) {
// In development, it does not produce real files. // In development, it does not produce real files.
filename: isEnvProduction filename: isEnvProduction
? 'mrstatic/js/[name].[contenthash:8].js' ? 'mrstatic/js/[name].[contenthash:8].js'
: isEnvDevelopment && 'static/js/bundle.js', : isEnvDevelopment && 'mrstatic/js/bundle.js',
// There are also additional JS chunk files if you use code splitting. // There are also additional JS chunk files if you use code splitting.
chunkFilename: isEnvProduction chunkFilename: isEnvProduction
? 'mrstatic/js/[name].[contenthash:8].chunk.js' ? 'mrstatic/js/[name].[contenthash:8].chunk.js'
: isEnvDevelopment && 'static/js/[name].chunk.js', : isEnvDevelopment && 'mrstatic/js/[name].chunk.js',
// We inferred the "public path" (such as / or /my-project) from homepage. // We inferred the "public path" (such as / or /my-project) from homepage.
// We use "/" in development. // We use "/" in development.
publicPath: publicPath, publicPath: publicPath,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment