mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-04-20 11:30:43 -05:00
@@ -82,7 +82,7 @@ module.exports = (api, { entry, name }, options) => {
|
||||
|
||||
Object.assign(rawConfig.output, {
|
||||
filename: `${entryName}.js`,
|
||||
chunkFilename: `${entryName}.[id].js`,
|
||||
chunkFilename: `${entryName}.[name].js`,
|
||||
library: libName,
|
||||
libraryExport: 'default',
|
||||
libraryTarget: format,
|
||||
|
||||
@@ -112,7 +112,7 @@ module.exports = (api, { target, entry, name }) => {
|
||||
|
||||
Object.assign(rawConfig.output, {
|
||||
filename: `${entryName}.js`,
|
||||
chunkFilename: `${libName}.[id]${minify ? `.min` : ``}.js`,
|
||||
chunkFilename: `${libName}.[name]${minify ? `.min` : ``}.js`,
|
||||
// use dynamic publicPath so this can be deployed anywhere
|
||||
// the actual path will be determined at runtime by checking
|
||||
// document.currentScript.src.
|
||||
|
||||
@@ -6,7 +6,7 @@ module.exports = (api, options) => {
|
||||
.devtool('source-map')
|
||||
.output
|
||||
.filename(`js/[name].[chunkhash:8].js`)
|
||||
.chunkFilename(`js/[name].[id].[chunkhash:8].js`)
|
||||
.chunkFilename(`js/[name].[chunkhash:8].js`)
|
||||
|
||||
// keep module.id stable when vendor modules does not change
|
||||
webpackConfig
|
||||
|
||||
Reference in New Issue
Block a user