mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-17 15:53:28 +00:00
Merge pull request #3473 from haiwen/update-package-script
repair 'call' undefine bug
This commit is contained in:
@@ -273,6 +273,12 @@ module.exports = {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
|
new webpack.LoaderOptionsPlugin({
|
||||||
|
// test: /\.xxx$/, // may apply this only for some modules
|
||||||
|
options: {
|
||||||
|
concatenateModules: false
|
||||||
|
}
|
||||||
|
}),
|
||||||
// Makes some environment variables available in index.html.
|
// Makes some environment variables available in index.html.
|
||||||
// The public URL is available as %PUBLIC_URL% in index.html, e.g.:
|
// The public URL is available as %PUBLIC_URL% in index.html, e.g.:
|
||||||
// <link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
|
// <link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
|
||||||
@@ -325,6 +331,7 @@ module.exports = {
|
|||||||
// Note: this won't work without ExtractTextPlugin.extract(..) in `loaders`.
|
// Note: this won't work without ExtractTextPlugin.extract(..) in `loaders`.
|
||||||
new ExtractTextPlugin({
|
new ExtractTextPlugin({
|
||||||
filename: cssFilename,
|
filename: cssFilename,
|
||||||
|
allChunks: true
|
||||||
}),
|
}),
|
||||||
// Generate a manifest file which contains a mapping of all asset filenames
|
// Generate a manifest file which contains a mapping of all asset filenames
|
||||||
// to their corresponding output file so that tools can pick it up without
|
// to their corresponding output file so that tools can pick it up without
|
||||||
|
Reference in New Issue
Block a user