-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathwebpack.plugins.js
More file actions
24 lines (23 loc) · 844 Bytes
/
webpack.plugins.js
File metadata and controls
24 lines (23 loc) · 844 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
const Dotenv = require('dotenv-webpack');
// const CopyWebpackPlugin = require('copy-webpack-plugin');
// const assets = ['images', 'fonts'];
// const pathToCopyAssetsFrom = 'src/renderer';
// const pathToCopyAssetsTo = '.webpack/renderer';
module.exports = [
new ForkTsCheckerWebpackPlugin(),
new Dotenv({
path: './.env', // Path to .env file (this is the default)
safe: true, // load .env.example (defaults to "false" which does not use dotenv-safe)
}),
// ...assets.map((asset) => {
// return new CopyWebpackPlugin({
// patterns: [
// {
// from: path.resolve(__dirname, pathToCopyAssetsFrom, asset),
// to: path.resolve(__dirname, pathToCopyAssetsTo, asset),
// },
// ],
// });
// }),
];