mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
🔧 Chore: modify babel config and optimize theme.js compilation and loading
This commit is contained in:
+3
-2
@@ -18,9 +18,10 @@
|
||||
},
|
||||
"scripts": {
|
||||
"preinstall": "npx npm-force-resolutions",
|
||||
"babel": "npx babel src/js/theme.js --out-file assets/js/theme.js",
|
||||
"babel": "npx babel src/js/theme.js -o assets/js/theme.min.js -s",
|
||||
"build": "npm run babel && hugo -v --source=docs --gc --minify",
|
||||
"build-lunr-segmentit": "browserify src/lib/lunr.segmentit.js -o assets/lib/lunr/lunr.segmentit.js -t babelify --presets @babel/preset-env --presets minify",
|
||||
"build:vercel": "npm run babel && hugo -v --source=docs --theme $PWD $BUILD_DRAFTS --gc --minify",
|
||||
"build:lunr.segmentit": "browserify src/lib/lunr.segmentit.js -o assets/lib/lunr/lunr.segmentit.js -t babelify --presets @babel/preset-env --presets minify",
|
||||
"server": "hugo server --source=docs -D --disableFastRender --navigateToChanged --ignoreCache",
|
||||
"server:production": "hugo server --source=docs -D --disableFastRender --navigateToChanged --ignoreCache -e production",
|
||||
"start": "npm run babel && npm run server",
|
||||
|
||||
Reference in New Issue
Block a user