Fix assets
This commit is contained in:
parent
4711fcbd49
commit
d8170331e4
|
|
@ -39,6 +39,5 @@
|
||||||
|
|
||||||
{{- define "scripts" -}}
|
{{- define "scripts" -}}
|
||||||
{{ partial "part/script.html" (dict "ctx" . "path" "js/three.bundle.js")}}
|
{{ partial "part/script.html" (dict "ctx" . "path" "js/three.bundle.js")}}
|
||||||
{{ partial "part/script.html" (dict "ctx" . "path" "js/vue.bundle.js")}}
|
|
||||||
{{ partial "part/script.html" (dict "ctx" . "path" "js/catalog.bundle.js")}}
|
{{ partial "part/script.html" (dict "ctx" . "path" "js/catalog.bundle.js")}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
@ -19,7 +19,7 @@ module.exports = {
|
||||||
path: __dirname + "/assets"
|
path: __dirname + "/assets"
|
||||||
},
|
},
|
||||||
optimization: {
|
optimization: {
|
||||||
//usedExports: true,
|
usedExports: true,
|
||||||
splitChunks: {
|
splitChunks: {
|
||||||
cacheGroups: {
|
cacheGroups: {
|
||||||
common: {
|
common: {
|
||||||
|
|
|
||||||
|
|
@ -5,10 +5,6 @@ const MinifyPlugin = require("babel-minify-webpack-plugin");
|
||||||
|
|
||||||
module.exports = merge(common, {
|
module.exports = merge(common, {
|
||||||
mode: "production",
|
mode: "production",
|
||||||
module: {
|
|
||||||
},
|
|
||||||
plugins: [
|
|
||||||
],
|
|
||||||
optimization: {
|
optimization: {
|
||||||
minimizer: [
|
minimizer: [
|
||||||
new OptimizeCSSAssetsPlugin()
|
new OptimizeCSSAssetsPlugin()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue