-
Notifications
You must be signed in to change notification settings - Fork 2
/
config-defaults.js
103 lines (95 loc) · 2.14 KB
/
config-defaults.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
module.exports = {
basePaths: {
src: "./src",
dest: "./public",
},
javascripts: {
src: "assets/js",
dest: "assets/js",
extensions: ["js", "jsx"],
hot: {
reload: true,
noInfo: false,
quiet: true,
react: false,
},
devtool: "eval-cheap-module-source-map",
babelLoader: {
// 'test' is derived from TASK_CONFIG.javascripts.extensions
// 'options' is derived from TASK_CONFIG.javascripts.babel
loader: "babel-loader",
exclude: /node_modules/,
},
babel: {
presets: [["@babel/preset-env", { modules: false }]],
plugins: [
["@babel/plugin-proposal-class-properties", { loose: true }],
["@babel/plugin-proposal-private-methods", { loose: true }],
["@babel/plugin-proposal-private-property-in-object", { loose: true }],
"@babel/plugin-syntax-dynamic-import",
"@babel/plugin-transform-runtime",
],
},
development: {},
production: {
devtool: false,
uglifyJsPlugin: {},
definePlugin: {
"process.env": {
NODE_ENV: JSON.stringify("production"),
},
},
},
},
static: {
src: "assets/static",
dest: "./",
},
stylesheets: {
src: "assets/styles",
dest: "assets/css",
sass: {
includePaths: ["./node_modules"],
},
extensions: ["sass", "scss", "css"],
},
html: {
src: "views",
dest: "./",
extensions: ["pug", "njk", "md", "json", "js"],
},
images: {
src: "assets/images",
dest: "assets/images",
extensions: ["jpg", "png", "svg", "gif", "webp", "avif"],
},
icons: {
src: "assets/icons",
dest: "assets/images",
svgstore: {},
},
fonts: {
src: "assets/fonts",
dest: "assets/fonts",
extensions: ["woff2", "woff", "eot", "ttf", "svg"],
},
production: {
rev: {
manifestDir: "assets",
},
},
additionalTasks: {
// eslint-disable-next-line
initialize(gulp, TASK_CONFIG) {
// gulp.task('myTask', function() { })
},
development: {
prebuild: [],
postbuild: [],
},
production: {
prebuild: [],
postbuild: [],
},
},
};