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

24 lines
509 B
JavaScript

4 years ago
const ESLintPlugin = require("eslint-webpack-plugin");
4 years ago
const fs = require("fs");
const dotenv = require("dotenv");
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: require("./webpack.rules"),
},
plugins: [
new ESLintPlugin({
exclude: "node_modules",
}),
],
4 years ago
resolve: {
extensions: [".js", ".jsx", ".css"],
},
4 years ago
};