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.
m3u8-downloader-TypeScript/build/webpack.renderer.config.js

35 lines
648 B
JavaScript

4 years ago
const ESLintPlugin = require("eslint-webpack-plugin");
const rules = require("./webpack.rules");
4 years ago
const loadEnv = require("./loadEnv");
loadEnv();
4 years ago
module.exports = {
module: {
4 years ago
rules: [
...rules,
4 years ago
{
4 years ago
test: /\.(s?css)$/,
use: [
{ loader: "style-loader" },
{ loader: "css-loader" },
{ loader: "sass-loader" },
],
4 years ago
},
{
test: /\.jsx?$/,
use: "babel-loader",
exclude: /node_modules/,
},
4 years ago
],
4 years ago
},
plugins: [
new ESLintPlugin({
exclude: "node_modules",
}),
],
4 years ago
resolve: {
extensions: [".js", ".jsx", ".css"],
},
4 years ago
};