forked from lunafromthemoon/RenJS-V2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.dev.js
24 lines (22 loc) · 952 Bytes
/
webpack.dev.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
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
const { merge } = require('webpack-merge')
const common = require('./webpack.common')
const path = require('path')
const CopyPlugin = require('copy-webpack-plugin');
module.exports = merge(common, {
mode: 'development',
devtool: "inline-source-map",
plugins: [
new CleanWebpackPlugin(),
new CopyPlugin({
patterns: [
// { from: path.resolve(__dirname, 'dev-only/assets'), to: 'assets' },
// { from: path.resolve(__dirname, 'dev-only/story'), to: 'story' },
// { from: path.resolve(__dirname, 'dev-only/GUI.yaml'), to: '' },
// { from: path.resolve(__dirname, 'dev-only/index.html'), to: '' },
// { from: path.resolve(__dirname, 'dev-only/config.js'), to: '' },
{ from: path.resolve(__dirname, 'dev-only'), to: '' }
]
}),
],
})