You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
648 B
JavaScript
35 lines
648 B
JavaScript
const ESLintPlugin = require("eslint-webpack-plugin");
|
|
const rules = require("./webpack.rules");
|
|
const loadEnv = require("./loadEnv");
|
|
|
|
loadEnv();
|
|
|
|
module.exports = {
|
|
module: {
|
|
rules: [
|
|
...rules,
|
|
{
|
|
test: /\.(s?css)$/,
|
|
use: [
|
|
{ loader: "style-loader" },
|
|
{ loader: "css-loader" },
|
|
{ loader: "sass-loader" },
|
|
],
|
|
},
|
|
{
|
|
test: /\.jsx?$/,
|
|
use: "babel-loader",
|
|
exclude: /node_modules/,
|
|
},
|
|
],
|
|
},
|
|
plugins: [
|
|
new ESLintPlugin({
|
|
exclude: "node_modules",
|
|
}),
|
|
],
|
|
resolve: {
|
|
extensions: [".js", ".jsx", ".css"],
|
|
},
|
|
};
|