Skip to content

Commit

Permalink
Fixes #742 update chart js (#750)
Browse files Browse the repository at this point in the history
  • Loading branch information
CrochetFeve0251 authored Nov 3, 2023
1 parent e046686 commit 273a9e3
Show file tree
Hide file tree
Showing 15 changed files with 1,247 additions and 15,298 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
/gruntlocalconf.json
composer.lock
package-lock.json
/_dev/node_modules
20 changes: 20 additions & 0 deletions _dev/bud.config.js
Original file line number Diff line number Diff line change
@@ -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() )
}
15 changes: 15 additions & 0 deletions _dev/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "imagify_dev",
"version": "1.0.0",
"dependencies": {
},
"devDependencies": {
"@roots/bud": "^6.11.0",
"chart.js": "^4.4.0"
},
"scripts": {
"dev": "bud dev",
"build": "bud build",
"bud": "bud"
}
}
Loading

0 comments on commit 273a9e3

Please sign in to comment.