Skip to content

Commit

Permalink
Merge pull request #25 from infielddigital/hotfix/24-only-cache-prod
Browse files Browse the repository at this point in the history
Only cache files if Webpack is run in production mode #24
  • Loading branch information
kevinweber authored Mar 20, 2018
2 parents 814c062 + 82bdc0f commit 8e33720
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions ui.apps/src/main/webpack.core/internals/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const NODE_MODULES = path.join(__dirname, '../node_modules');
const IS_PROD = (process.env.NODE_ENV === 'production');

const WEBPACK_DEFAULT = {
cache: IS_PROD,
// Webpack v4: `mode` is required
mode: IS_PROD ? 'production' : 'development',
stats: {
Expand Down
2 changes: 1 addition & 1 deletion ui.apps/src/main/webpack.core/package-lock.json

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

2 changes: 1 addition & 1 deletion ui.apps/src/main/webpack.core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aem-webpack-example",
"version": "2.3.0",
"version": "2.3.1",
"private": true,
"description": "Core front end setup of a project",
"scripts": {
Expand Down

0 comments on commit 8e33720

Please sign in to comment.