Fixed grunt-webpack circular reference issue
This commit is contained in:
parent
f6d97c19d9
commit
16be7cb28a
72
Gruntfile.js
72
Gruntfile.js
@ -180,42 +180,44 @@ module.exports = function (grunt) {
|
|||||||
},
|
},
|
||||||
webpack: {
|
webpack: {
|
||||||
options: webpackConfig,
|
options: webpackConfig,
|
||||||
web: {
|
web: () => {
|
||||||
mode: "production",
|
return {
|
||||||
target: "web",
|
mode: "production",
|
||||||
entry: Object.assign({
|
target: "web",
|
||||||
main: "./src/web/index.js",
|
entry: Object.assign({
|
||||||
sitemap: "./src/web/static/sitemap.js"
|
main: "./src/web/index.js",
|
||||||
}, moduleEntryPoints),
|
sitemap: "./src/web/static/sitemap.js"
|
||||||
output: {
|
}, moduleEntryPoints),
|
||||||
path: __dirname + "/build/prod"
|
output: {
|
||||||
},
|
path: __dirname + "/build/prod"
|
||||||
resolve: {
|
},
|
||||||
alias: {
|
resolve: {
|
||||||
"./config/modules/OpModules": "./config/modules/Default"
|
alias: {
|
||||||
}
|
"./config/modules/OpModules": "./config/modules/Default"
|
||||||
},
|
|
||||||
plugins: [
|
|
||||||
new webpack.DefinePlugin(BUILD_CONSTANTS),
|
|
||||||
new HtmlWebpackPlugin({
|
|
||||||
filename: "index.html",
|
|
||||||
template: "./src/web/html/index.html",
|
|
||||||
chunks: ["main"],
|
|
||||||
compileTime: compileTime,
|
|
||||||
version: pkg.version,
|
|
||||||
minify: {
|
|
||||||
removeComments: true,
|
|
||||||
collapseWhitespace: true,
|
|
||||||
minifyJS: true,
|
|
||||||
minifyCSS: true
|
|
||||||
}
|
}
|
||||||
}),
|
},
|
||||||
new BundleAnalyzerPlugin({
|
plugins: [
|
||||||
analyzerMode: "static",
|
new webpack.DefinePlugin(BUILD_CONSTANTS),
|
||||||
reportFilename: "BundleAnalyzerReport.html",
|
new HtmlWebpackPlugin({
|
||||||
openAnalyzer: false
|
filename: "index.html",
|
||||||
}),
|
template: "./src/web/html/index.html",
|
||||||
]
|
chunks: ["main"],
|
||||||
|
compileTime: compileTime,
|
||||||
|
version: pkg.version,
|
||||||
|
minify: {
|
||||||
|
removeComments: true,
|
||||||
|
collapseWhitespace: true,
|
||||||
|
minifyJS: true,
|
||||||
|
minifyCSS: true
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
new BundleAnalyzerPlugin({
|
||||||
|
analyzerMode: "static",
|
||||||
|
reportFilename: "BundleAnalyzerReport.html",
|
||||||
|
openAnalyzer: false
|
||||||
|
}),
|
||||||
|
]
|
||||||
|
};
|
||||||
},
|
},
|
||||||
webInline: {
|
webInline: {
|
||||||
mode: "production",
|
mode: "production",
|
||||||
|
Loading…
Reference in New Issue
Block a user