Skip to content

Commit

Permalink
updating webpack and babel
Browse files Browse the repository at this point in the history
  • Loading branch information
iruzevic committed Jun 26, 2024
1 parent ad4f357 commit 9f58241
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions webpack/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,12 @@ module.exports = (mode, optionsData = {}) => {
const outputDefault = merge(project, base);

// Output development setup by default.
let output;

// Output production setup if mode is set inside package.json.
if (mode === 'production') {
output = merge(outputDefault, production);
} else {
output = outputDefault;
}
const development = {
devtool: false,
watchOptions: {
ignored: '**/node_modules',
},
};

return output;
return merge(outputDefault, mode === 'production' ? production : development);
};

0 comments on commit 9f58241

Please sign in to comment.