Skip to content

Commit

Permalink
Merge pull request #926 from hackforla/869-FRONT-webpack-CPU-usage
Browse files Browse the repository at this point in the history
869 front webpack cpu usage
  • Loading branch information
adamkendis authored Feb 2, 2021
2 parents 44d5a84 + 71ed179 commit a7edea4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions client/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ module.exports = {
path: path.join(__dirname, '/dist'),
filename: 'bundle.js',
},
watchOptions: {
ignored: /node_modules/,
},
resolve: {
extensions: ['.js', '.jsx'],
alias: {
Expand Down
6 changes: 4 additions & 2 deletions client/webpack.dev.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
const merge = require('webpack-merge');
const path = require('path');
const config = require('./webpack.config.js');

module.exports = merge(config, {
mode: 'development',
devtool: 'inline-source-map',
devServer: {
open: true,
contentBase: './public',
contentBase: path.join(__dirname, './dist'),
publicPath: '/',
writeToDisk: true,
compress: true,
port: 3000,
host: '0.0.0.0',
hot: true,
historyApiFallback: true,
},
Expand Down

0 comments on commit a7edea4

Please sign in to comment.