-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.var.config.js
More file actions
31 lines (27 loc) · 928 Bytes
/
webpack.var.config.js
File metadata and controls
31 lines (27 loc) · 928 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
/**
* Build-time variables for the Webpack pipeline.
*
* This file defines which files will be processed and where
* output CSS/JS files should be written.
*
* Keeping paths here ensures all build logic remains configurable
* without modifying the base Webpack config.
*/
const basePath = '.';
const webpackParams = {
/** Entry points for JavaScript + SCSS build */
entryPath: {
main: [
basePath + '/public-assets/src/scss/main.scss',
basePath + '/public-assets/src/js/main.js',
],
admin: [
basePath + '/public-assets/src/scss/admin.scss',
basePath + '/public-assets/src/js/admin.js',
],
},
/** Output file locations (relative to the theme root) */
jsOutputPath: basePath + '/public-assets/dist/js/[name].js',
cssOutputPath: basePath + '/public-assets/dist/css/[name].css',
};
module.exports = { webpackParams };