Replaces UglifyJS by Tearser, as it supports es6. Adds missing item to collection breadcrumb

This commit is contained in:
Mateus Machado Luna 2018-10-23 10:23:09 -03:00
parent 16d24828df
commit 0f3d159dad
3 changed files with 7 additions and 3 deletions

View File

@ -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",

View File

@ -29,6 +29,10 @@
tag="a"
:to="$routerHelper.getCollectionsPath()">{{ $i18n.get('repository') }}</router-link>
&nbsp;>&nbsp;
<router-link
tag="a"
:to="$routerHelper.getCollectionsPath()">{{ $i18n.get('collections') }}</router-link>
&nbsp;>&nbsp;
<router-link
tag="a"
:to="{ path: collectionBreadCrumbItem.url, query: { fromBreadcrumb: true }}">{{ collectionBreadCrumbItem.name }}</router-link>

View File

@ -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
}),