1 Star 0 Fork 224

ryvius_key / vjdesign

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
webpack.config.common.js 926 Bytes
一键复制 编辑 原始数据 按行查看 历史
fyl080801 提交于 2020-07-09 20:44 . feat: 今天不搞了
const path = require("path");
const LodashModuleReplacementPlugin = require("lodash-webpack-plugin");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
module.exports = {
context: path.resolve(__dirname, "./package"),
module: {
rules: [
{
test: /\.jsx?$/,
exclude: /node_modules/,
loader: "babel-loader"
},
{
test: /\.(eot|svg|ttf|woff|woff2)(\?\S*)?$/,
loader: "file-loader"
},
{
test: /\.s(a|c)ss$/,
loader: [
MiniCssExtractPlugin.loader,
"css-loader",
{
loader: "sass-loader"
}
]
}
]
},
plugins: [
new LodashModuleReplacementPlugin({
cloning: true,
caching: true,
paths: true
}),
new MiniCssExtractPlugin({
filename: "[name].css"
})
],
resolve: {
extensions: [".js", ".jsx", ".scss"]
}
};
JavaScript
1
https://gitee.com/ryvius_key/vjdesign.git
git@gitee.com:ryvius_key/vjdesign.git
ryvius_key
vjdesign
vjdesign
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891