fixed translation switch bugs

This commit is contained in:
2018-06-20 12:30:44 +02:00
parent dcdd8e0011
commit 30443960ab
11 changed files with 7576 additions and 12171 deletions
+52 -41
View File
@@ -21,6 +21,17 @@ module.exports = {
module: {
rules: [
/* your other rules for JavaScript transpiling go in here */
{
test: /\.js$/,
exclude: /(node_modules|bower_components)/,
use: {
loader: 'babel-loader',
options: {
presets: ['es2015'],
// plugins: [require('@babel/plugin-proposal-object-rest-spread')]
}
}
},
{
// regular css files
test: /\.css$/,
@@ -35,7 +46,7 @@ module.exports = {
// fonts
test: /\.(eot|svg|ttf|woff|woff2)$/,
use: "file-loader?name=fonts/[name].[ext]"
},
}
]
},
plugins: [
@@ -43,46 +54,46 @@ module.exports = {
// define where to save the file
filename: '[name].css', allChunks: true,
}),
// new UglifyJsPlugin({
// sourceMap: true,
// parallel:4,
// uglifyOptions: {
// ecma: 8,
// // disable most of compress to gain in compilation speed
// // https://slack.engineering/keep-webpack-fast-a-field-guide-for-better-build-performance-f56a5995e8f1
// compress: {
// arrows: false,
// booleans: false,
// // cascade: false,
// collapse_vars: false,
// comparisons: false,
// computed_props: false,
// hoist_funs: false,
// hoist_props: false,
// hoist_vars: false,
// if_return: false,
// inline: false,
// join_vars: false,
// keep_infinity: true,
// loops: false,
// negate_iife: false,
// properties: false,
// reduce_funcs: false,
// reduce_vars: false,
// sequences: false,
// side_effects: false,
// switches: false,
// top_retain: false,
// toplevel: false,
// typeofs: false,
// unused: false,
// conditionals: false,
// dead_code: true,
// evaluate: false,
// warnings: false
// },
// }
// })
new UglifyJsPlugin({
sourceMap: true,
parallel:4,
uglifyOptions: {
ecma: 8,
// disable most of compress to gain in compilation speed
// https://slack.engineering/keep-webpack-fast-a-field-guide-for-better-build-performance-f56a5995e8f1
compress: {
arrows: false,
booleans: false,
// cascade: false,
collapse_vars: false,
comparisons: false,
computed_props: false,
hoist_funs: false,
hoist_props: false,
hoist_vars: false,
if_return: false,
inline: false,
join_vars: false,
keep_infinity: true,
loops: false,
negate_iife: false,
properties: false,
reduce_funcs: false,
reduce_vars: false,
sequences: false,
side_effects: false,
switches: false,
top_retain: false,
toplevel: false,
typeofs: false,
unused: false,
conditionals: false,
dead_code: true,
evaluate: false,
warnings: false
},
}
})
],
watch: true
};