Skip to content

CodeCoupler Webpack Howto's

Exclude node_modules

webpack.cc-config.js

1
2
3
4
5
6
7
8
module.exports = {
  loaders: {
    //Exclude all css files from node modules directory
    css: {
      exclude: /node_modules/,
    },
  },
};

Change Destination Output

webpack.config.js

1
2
3
4
5
6
7
const path = require("path");
module.exports = {
  output: { path: path.join(process.cwd(), "another-dist") },
  devServer: {
    contentBase: path.join(process.cwd(), "another-dist")
  }
};

Change Print Width

Set this only here, ESLint will use these options, too.

After set this property you have to "ESLint: Restart ESLint Server"!

.prettierrc

1
2
3
{
  "printWidth": 120,
}