/dist"),
filename: "[name]/index.js",
},
};
js | jsx编译
安装babel插件
yarn add -D babel-loader @babel...$/,
exclude: /(node_modules|bower_components)/,
use: {
loader: 'babel-loader...jsx$/,
exclude: /(node_modules|bower_components)/,
use: {
loader: "babel-loader...style-loader", "css-loader"],
},
{
test: /\.js$/,
exclude: /(node_modules|bower_components...$/,
exclude: /(node_modules|bower_components)/,
use: {
loader: 'babel-loader