use webpack-dists-loader to selectively package code, only JS will take effect, and HTML will also take effect as configured, but no error will be reported during packaging, but the corresponding effect will not be achieved.
JS configuration
{
test: /\.js$/,
use: [
{
loader: "webpack-dists-loader",
options: {
debug: {
env: ["development", "test"],
tag: "debug"
},
online: {
env: ["production"],
tag: "online",
specials: {
"gear": "gear"
}
}
}
},
{
loader: "babel-loader"
}
],
include: [path.resolve("src"), path.resolve("node_modules/webpack-dev-server/client")]
}
how to configure CSS, but not according to the above?