-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwebpack.dev.js
More file actions
32 lines (30 loc) · 857 Bytes
/
Copy pathwebpack.dev.js
File metadata and controls
32 lines (30 loc) · 857 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
25
26
27
28
29
30
31
32
const merge = require('webpack-merge');
const common = require('./webpack.common.js');
const webpack = require('webpack')
const HtmlPlugin = require('html-webpack-plugin')
const htmlPlugin = new HtmlPlugin({
template: './index.dev.html',
filename: 'index.html',
inject: 'body'
})
module.exports = merge(common, {
plugins: [
new webpack.DefinePlugin({
'process.env.CONTEXT': JSON.stringify('electron'),
'process.env.JOBS_API_URL': JSON.stringify('http://localhost:3145')
})
],
module: {
rules: [
{
test: /\.scss$/,
use: [
{ loader: "style-loader" },
{ loader: "css-loader" },
{ loader: "sass-loader" }
]
}
]
},
plugins: [htmlPlugin]
});