forked from infinum/eightshift-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.js
More file actions
19 lines (17 loc) · 826 Bytes
/
webpack.config.js
File metadata and controls
19 lines (17 loc) · 826 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/**
* This is a main entrypoint for Webpack config.
* All the settings are pulled from node_modules/@eightshift/frontend-libs/webpack.
* We are loading mostly used configuration but you can always override or turn off the default setup and provide your own.
* Please referer to Eightshift-libs wiki for details.
*/
module.exports = (env, argv) => {
const projectConfig = {
config: {
projectDir: __dirname, // Current project directory absolute path.
projectUrl: 'dev.boilerplate.com', // Used for providing browsersync functionality.
projectPath: 'wp-content/themes/eightshift-boilerplate', // Project path relative to project root.
},
};
// Generate webpack config for this project using options object.
return require('./node_modules/@eightshift/frontend-libs/webpack')(argv.mode, projectConfig);
};