I am having trouble figuring out how to get webpack-dev-server working with the config-env-development.
Here is my config:
const generateConfig = require('@easy-webpack/core').generateConfig;
const glob = require("glob");
const baseConfig = {
entry: {
'pnp': ['./src/pnp'],
},
output: {
path: "./dist",
filename: "[name].js"
}
}
//if (NODE_ENV = "development") {
module.exports = generateConfig(
baseConfig,
require('@easy-webpack/config-env-development')({ port:3000, host: 'localhost:3000' }),
require('@easy-webpack/config-typescript')(),
{devtool: 'source-map'}
);
//}
I am calling it like this:
webpack-dev-server --config webpack.config.js
It compiles fine and I get the output fine, but there is no server running. Any help would be greatly appreciated. Great work btw!!
┆Issue is synchronized with this Asana task