in the process of real-time packaging using webpack-w, it is found that the packaging failed, and the following error is prompted. Which god can take a look?
the following is my profile
module: {
rules: [
{
test: /\.js[x]?$/,
loader: "babel-loader",
exclude: /node_modules/,
query: {presets: ["es2015", "stage-0", "react"]}
},
{
test: /.*\/styles\/.*\.scss$/,
use: ExtractTextPlugin.extract(["css-loader", "postcss-loader", "sass-loader"])
},
{
test: [/.*\/views\/.*\.scss$/, /.*\/components\/.*\.scss$/, /.*\/shared\/.*\.scss$/],
use: ExtractTextPlugin.extract([
"css-loader?modules&importLoaders=2&localIdentName=[name]__[local]",
"postcss-loader",
"sass-loader"
])
},
{
test: /\.less$/,
use: ExtractTextPlugin.extract(["css-loader", "less-loader"])
}
]
},