mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-20 02:48:51 +00:00
update package script
This commit is contained in:
@@ -111,9 +111,6 @@ module.exports = {
|
|||||||
.relative(paths.appSrc, info.absoluteResourcePath)
|
.relative(paths.appSrc, info.absoluteResourcePath)
|
||||||
.replace(/\\/g, '/'),
|
.replace(/\\/g, '/'),
|
||||||
},
|
},
|
||||||
optimization: {
|
|
||||||
concatenateModules: false,
|
|
||||||
},
|
|
||||||
resolve: {
|
resolve: {
|
||||||
// This allows you to set a fallback for where Webpack should look for modules.
|
// This allows you to set a fallback for where Webpack should look for modules.
|
||||||
// We placed these paths second because we want `node_modules` to "win"
|
// We placed these paths second because we want `node_modules` to "win"
|
||||||
@@ -276,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">
|
||||||
|
Reference in New Issue
Block a user