Skip to content

Commit 2472c53

Browse files
committed
Switch to esbuild
1 parent 4514e31 commit 2472c53

File tree

3 files changed

+24
-9
lines changed

3 files changed

+24
-9
lines changed

js/index.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,9 @@ import './string';
2020
import './date';
2121
import './number';
2222

23-
// CSS and Fonts
23+
// CSS
2424
import 'bootstrap/dist/css/bootstrap.min.css';
2525
import 'bootstrap-icons/font/bootstrap-icons.css';
26-
import 'bootstrap-icons/font/fonts/bootstrap-icons.woff';
27-
import 'bootstrap-icons/font/fonts/bootstrap-icons.woff2';
2826
import '../css/style.css';
2927

3028
// Exports

package-lock.json

+18-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
{
22
"name": "@djthorpe/js-framework",
3-
"version": "0.0.28",
3+
"version": "0.0.30",
44
"description": "Javascript Framework",
55
"main": "dist/js/index.js",
66
"scripts": {
7-
"all": "npm-run-all lint build docs",
7+
"all": "npm-run-all lint esbuild docs",
88
"build": "webpack --config config/webpack.config.js",
9+
"esbuild": "rm -fr dist && esbuild js/index.js --bundle --minify --sourcemap --outdir=dist --define:process.env.NODE_ENV=\"production\" --loader:.woff=file --loader:.woff2=file",
910
"lint": "eslint js",
1011
"docs": "jsdoc -c config/jsdoc.config.json"
1112
},
@@ -33,7 +34,8 @@
3334
"style-loader": "^2.0.0",
3435
"terser": "^5.1.0",
3536
"webpack": "^5.33.2",
36-
"webpack-cli": "^4.6.0"
37+
"webpack-cli": "^4.6.0",
38+
"esbuild": "^0.11.12"
3739
},
3840
"dependencies": {
3941
"@popperjs/core": "^2.9.2",

0 commit comments

Comments
 (0)