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/webpack.main.config.js

32 lines
650 B
JavaScript

4 years ago
const ESLintPlugin = require("eslint-webpack-plugin");
4 years ago
const fs = require("fs");
const dotenv = require("dotenv");
const rules = require("./webpack.rules");
4 years ago
const envConfig = dotenv.parse(fs.readFileSync(".env.override"));
for (const k of Object.keys(envConfig)) {
process.env[k] = envConfig[k];
}
4 years ago
module.exports = {
4 years ago
entry: "./src/main/index.js",
4 years ago
module: {
rules: [
...rules,
{
test: /\.js$/,
use: "babel-loader",
exclude: /node_modules/,
},
],
4 years ago
},
plugins: [
new ESLintPlugin({
exclude: "node_modules",
}),
],
4 years ago
resolve: {
extensions: [".js", ".jsx", ".css"],
},
4 years ago
};