-
Notifications
You must be signed in to change notification settings - Fork 5
/
webpack.config.js
31 lines (30 loc) · 923 Bytes
/
webpack.config.js
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
/**
* For LOCAL development mode webpack config
**/
const os = require('os');
const path = require('path');
const { merge } = require('webpack-merge');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const commonConfig = require('./webpack.config.common');
module.exports = merge(commonConfig, {
mode: 'development',
devtool: 'eval-source-map',
output: {
filename: '[name].js',
path: path.resolve(__dirname, 'build/resources/main/static/bundle'),
},
module: {
rules: [
{
test: /\.css$/,
use: [MiniCssExtractPlugin.loader, 'css-loader'],
},
{
test: /\.(ts|tsx)$/,
exclude: /node_modules|src\/main\/frontend\/vendor/,
use: 'babel-loader',
},
],
},
plugins: [new MiniCssExtractPlugin({ filename: '[name].css' })],
});