Files
zkldi_Tachi/client/webpack.config.js
T
2021-07-06 02:33:18 +01:00

44 lines
781 B
JavaScript

const path = require("path");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const rootPath = path.resolve(__dirname);
const distPath = `${rootPath}/dist`;
module.exports = {
mode: "development",
stats: "errors-only",
performance: {
hints: true,
},
entry: {
"sass/style.react": "./src/index.scss",
},
output: {
path: distPath,
filename: "[name].js",
},
resolve: { extensions: [".scss"], },
plugins: [
new MiniCssExtractPlugin({
filename: "[name].min.css",
}),
],
module: {
rules: [
{
test: /\.scss$/,
use: [
MiniCssExtractPlugin.loader,
"css-loader",
{
loader: "sass-loader",
options: {
sourceMap: true,
},
},
],
},
],
}
}