Replaces UglifyJS by Tearser, as it supports es6. Adds missing item to collection breadcrumb
This commit is contained in:
parent
adcb034c86
commit
716f885c8d
|
@ -39,7 +39,7 @@
|
|||
"postcss-loader": "^3.0.0",
|
||||
"sass-loader": "^7.1.0",
|
||||
"style-loader": "^0.23.1",
|
||||
"uglifyjs-webpack-plugin": "^2.0.1",
|
||||
"terser-webpack-plugin": "^1.1.0",
|
||||
"vue-custom-element": "^3.2.6",
|
||||
"vue-loader": "^15.4.2",
|
||||
"vue-template-compiler": "^2.5.17",
|
||||
|
|
|
@ -29,6 +29,10 @@
|
|||
tag="a"
|
||||
:to="$routerHelper.getCollectionsPath()">{{ $i18n.get('repository') }}</router-link>
|
||||
>
|
||||
<router-link
|
||||
tag="a"
|
||||
:to="$routerHelper.getCollectionsPath()">{{ $i18n.get('collections') }}</router-link>
|
||||
>
|
||||
<router-link
|
||||
tag="a"
|
||||
:to="{ path: collectionBreadCrumbItem.url, query: { fromBreadcrumb: true }}">{{ collectionBreadCrumbItem.name }}</router-link>
|
||||
|
|
|
@ -79,7 +79,7 @@ module.exports = {
|
|||
const production = false;
|
||||
|
||||
if (production === true) {
|
||||
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
|
||||
const TerserPlugin = require('terser-webpack-plugin');
|
||||
|
||||
console.log(`Production: ${production}`);
|
||||
|
||||
|
@ -93,7 +93,7 @@ if (production === true) {
|
|||
NODE_ENV: JSON.stringify('production')
|
||||
}
|
||||
}),
|
||||
new UglifyJsPlugin({
|
||||
new TerserPlugin({
|
||||
parallel: true,
|
||||
sourceMap: false
|
||||
}),
|
||||
|
|
Loading…
Reference in New Issue