-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
webpack.config.js
33 lines (29 loc) · 1.08 KB
/
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
32
33
process.traceDeprecation = true;
const path = require("path");
const mockup_config = require("@plone/mockup/webpack.config.js");
const CopyPlugin = require("copy-webpack-plugin");
module.exports = () => {
const config = mockup_config();
config.output.path = path.resolve(
__dirname,
"src/plone/staticresources/static/bundle-plone/"
);
config.plugins.push(
new CopyPlugin({
patterns: [
{
from: path.resolve(__dirname, "node_modules/bootstrap-icons/icons"),
to: path.resolve(__dirname, "src/plone/staticresources/static/icons-bootstrap"), // prettier-ignore
},
{
from: path.resolve(__dirname, "node_modules/svg-country-flags"),
to: path.resolve(__dirname, "src/plone/staticresources/static/icons-country-flags"), // prettier-ignore
globOptions: {
ignore: ["**/png*/*", "**/scripts/*"],
},
},
],
})
);
return config;
};