From be01691cf46e84627cdb7cce38891a56f7f93b0c Mon Sep 17 00:00:00 2001 From: Adolfo Panizo Date: Tue, 6 Mar 2018 16:29:33 +0100 Subject: [PATCH] Removing Ufligy plugin --- config/webpack.config.prod.js | 37 ----------------------------------- scripts/build.js | 2 +- 2 files changed, 1 insertion(+), 38 deletions(-) diff --git a/config/webpack.config.prod.js b/config/webpack.config.prod.js index e36665e5..8af9f61d 100644 --- a/config/webpack.config.prod.js +++ b/config/webpack.config.prod.js @@ -71,43 +71,6 @@ module.exports = { mode: 'production', // Don't attempt to continue if there are any errors. bail: true, - // We generate sourcemaps in production. This is slow but gives good results. - // You can exclude the *.map files from the build during deployment. - devtool: 'source-map', - // In production, we only want to load the polyfills and the app code. - optimization: { - minimizer: [ - // we specify a custom UglifyJsPlugin here to get source maps in production - new UglifyJSPlugin({ - uglifyOptions: { - output: { - comments: false - }, - compress: { - unsafe_comps: true, - properties: true, - keep_fargs: false, - pure_getters: true, - collapse_vars: true, - warnings: false, - sequences: true, - dead_code: true, - drop_debugger: true, - comparisons: true, - conditionals: true, - evaluate: true, - booleans: true, - loops: true, - unused: true, - hoist_funs: true, - if_return: true, - join_vars: true, - drop_console: true - } - } - }) - ] - }, entry: [ require.resolve('./polyfills'), paths.appIndexJs diff --git a/scripts/build.js b/scripts/build.js index e2b2bbc1..6b0d00cf 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -32,7 +32,7 @@ if (!checkRequiredFiles([paths.appHtml, paths.appIndexJs])) { function removeFileNameHash(fileName) { return fileName .replace(paths.appBuild, '') - .replace(/\/?(.*)(\.\w+)(\.js|\.css)/, (match, p1, p2, p3) => p1 + p3); + .replace(/\/?(.*)(\.\w+)(\.js|\.css|\.jsx|\.scss)/, (match, p1, p2, p3) => p1 + p3); } // Input: 1024, 2048