Merged in feature/from-pantheon (pull request #16)
code from pantheon * code from pantheon
This commit is contained in:
20
wp/wp-content/plugins/imagify/_dev/bud.config.js
Normal file
20
wp/wp-content/plugins/imagify/_dev/bud.config.js
Normal file
@@ -0,0 +1,20 @@
|
||||
/**
|
||||
* @typedef {import('@roots/bud').Bud} Bud
|
||||
*
|
||||
* @param {Bud} bud
|
||||
*/
|
||||
module.exports = async bud => {
|
||||
bud.externals({
|
||||
jQuery: 'window.jquery',
|
||||
wp: 'window.wp',
|
||||
})
|
||||
bud.runtime('single')
|
||||
|
||||
await bud
|
||||
.setPath('@dist', '../assets/admin')
|
||||
.entry({
|
||||
chart: 'chart.js',
|
||||
bulk: 'bulk.js',
|
||||
})
|
||||
//.when( bud.isProduction, () => bud.splitChunks().minimize() )
|
||||
}
|
||||
Reference in New Issue
Block a user