webpackConfig = require('./webpack.config.js'); code example Example: webpack config example npm install --save-dev webpack-dev-server