-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.dev.ts
More file actions
30 lines (29 loc) · 820 Bytes
/
webpack.dev.ts
File metadata and controls
30 lines (29 loc) · 820 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
import * as webpack from 'webpack';
import * as merge from 'webpack-merge';
import common from './webpack.common';
import * as MiniCssExtractPlugin from 'mini-css-extract-plugin';
module.exports = merge(common, {
mode: 'development',
devtool: 'inline-source-map',
module: {
rules: [
{
test: /\.(scss|css)$/,
use: [MiniCssExtractPlugin.loader, 'css-loader', 'sass-loader'],
},
],
},
plugins: [
new webpack.DefinePlugin({
IDENTITY_SERVER_URL: "'http://localhost:5000'",
API_URL: "'http://localhost:5200'",
SPA_URL: "'http://localhost:5100'",
MAPBOX_TOKEN: process.env.MAPBOX_TOKEN,
MAPBOX_STYLE: process.env.MAPBOX_STYLE,
}),
new MiniCssExtractPlugin({
filename: '[name].css',
chunkFilename: '[id].css',
}),
],
});