-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.configs.js
More file actions
34 lines (33 loc) · 853 Bytes
/
webpack.configs.js
File metadata and controls
34 lines (33 loc) · 853 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
27
28
29
30
31
32
33
34
module.exports.onCreateWebpackConfig = ({ stage, loaders, actions }) => {
if (stage === "build-html" || stage === "develop-html") {
actions.setWebpackConfig({
module: {
rules: [
{
test: /scrollreveal/,
use: loaders.null(),
},
{
test: /animejs/,
use: loaders.null(),
},
{
test: /miniraf/,
use: loaders.null(),
},
],
},
});
}
actions.setWebpackConfig({
resolve: {
alias: {
"@compons": path.resolve(__dirname, "compons"),
"@configs": path.resolve(__dirname, "configs"),
"@fonts": path.resolve(__dirname, "fonts"),
"@layout": path.resolve(__dirname, "layout"),
"@styles": path.resolve(__dirname, "styles"),
},
},
});
};