-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwebpack.config.js
More file actions
26 lines (23 loc) · 925 Bytes
/
webpack.config.js
File metadata and controls
26 lines (23 loc) · 925 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
const path = require('path');
const CopyPlugin = require("copy-webpack-plugin");
module.exports = {
mode: 'development',
entry: {},
output: {
filename: 'template.js',
path: path.resolve(__dirname, 'theme/nl-design-system/common/resources')
},
devtool: 'source-map',
plugins: [
new CopyPlugin({
patterns: [
{ from: "node_modules/@nl-rvo/assets/fonts", to: "assets/fonts" },
{ from: "node_modules/@nl-rvo/assets/icons", to: "assets/icons" },
{ from: "node_modules/@nl-rvo/assets/images", to: "assets/images" },
{ from: "node_modules/@nl-rvo/design-tokens/dist/index.css", to: "design-tokens/index.css" },
{ from: "node_modules/@nl-rvo/design-tokens/dist/index.js", to: "design-tokens/index.js" },
{ from: "node_modules/@nl-rvo/component-library-css/dist/index.css", to: "component-library-css/index.css" },
],
})
]
};