Skip to content

Commit

Permalink
Merge pull request #47 from shopgate/PWA-2291-decrease-compile-time
Browse files Browse the repository at this point in the history
Added thread-loader to optimize speed.
  • Loading branch information
fkloes committed Oct 9, 2019
2 parents 5c22482 + 3962085 commit 956a087
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
5 changes: 1 addition & 4 deletions lib/webpack.config.js
Expand Up @@ -201,10 +201,6 @@ const loaders = [
path.resolve(NODE_MODULES, 'svg-inline-loader'),
],
},
{
test: /\.ejs$/,
use: [path.resolve(__dirname, 'webpackConfig', 'ejsLoader')],
},
{
test: /\.(js|jsx)$/,
exclude: isDev ? [
Expand All @@ -221,6 +217,7 @@ const loaders = [
}] : [])
.concat([
stringReplaceLoader,
path.resolve(NODE_MODULES, 'thread-loader'),
babelLoaderConfig,
]),
},
Expand Down
10 changes: 10 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Expand Up @@ -85,6 +85,7 @@
"style-loader": "^0.23.1",
"svg-inline-loader": "^0.8.0",
"terser-webpack-plugin": "^1.2.3",
"thread-loader": "^2.1.3",
"webpack": "^4.39.1",
"webpack-bundle-analyzer": "^3.3.2",
"webpack-cli": "^3.3.6",
Expand Down

0 comments on commit 956a087

Please sign in to comment.