-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.init.js
35 lines (34 loc) · 1.18 KB
/
webpack.config.init.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
32
33
34
35
const { merge } = require('webpack-merge');
const path = require("path");
const webpackConfig = require('./webpack.config');
const CopyPlugin = require("copy-webpack-plugin");
module.exports = merge(webpackConfig, {
mode: 'development',
devtool: false,
plugins: [
new CopyPlugin({
patterns: [
{
from: path.resolve(__dirname, "node_modules/@popperjs/core/dist/umd/popper.js"),
to: path.resolve(__dirname, "js/popperjs"),
context: "node_modules/@popperjs/core/dist/",
},
{
from: path.resolve(__dirname, "node_modules/bootstrap/js/dist/*.js"),
to: path.resolve(__dirname, "js/bootstrap"),
context: "node_modules/bootstrap/js/dist/",
},
{
from: path.resolve(__dirname, "node_modules/bootstrap/js/dist/dom/*.js"),
to: path.resolve(__dirname, "js/bootstrap/dom"),
context: "node_modules/bootstrap/js/dist/dom",
},
{
from: path.resolve(__dirname, "node_modules/bootstrap/js/dist/util/*.js"),
to: path.resolve(__dirname, "js/bootstrap/util"),
context: "node_modules/bootstrap/js/dist/util",
}
],
}),
],
});