-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack-watch.config.js
More file actions
20 lines (18 loc) · 875 Bytes
/
webpack-watch.config.js
File metadata and controls
20 lines (18 loc) · 875 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
let config = require('@ucd-lib/cork-app-build').watch({
// root directory, all paths below will be relative to root
root : "",
// path to your entry .js file
entry : 'public/pages/acc.js',
// folder where bundle.js will be written
preview : 'public/dist',
// path your client (most likely installed via yarn) node_modules folder.
// Due to the flat:true flag of yarn, it's normally best to separate
// client code/libraries from all other modules (ex: build tools such as this).
// will take an array of relative paths as well
clientModules : 'node_modules'
});
// optionaly you can run:
// require('@ucd-lib/cork-app-build').watch(config, true)
// Adding the second flag will generate a ie build as well as a modern
// build when in development. Note this slows down the build process.
module.exports = config;