🔧 Chore: optimize npm scripts

This commit is contained in:
Cell
2022-05-28 09:42:49 +08:00
parent eb01a90a7b
commit 12e090f405
+2 -2
View File
@@ -21,8 +21,8 @@
"babel": "npx babel src/js/theme.js --out-file assets/js/theme.min.js --source-maps --no-comments && npx babel src/js/service-worker.js --out-file static/service-worker.min.js --source-maps --no-comments",
"build": "npm run babel && hugo -v --source=exampleSite --themesDir ../.. --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=exampleSite --themesDir ../.. -D --disableFastRender --navigateToChanged",
"server:production": "hugo server --source=exampleSite --themesDir ../.. -D --disableFastRender --navigateToChanged -e production",
"server": "hugo server --source=exampleSite --themesDir ../.. -D --disableFastRender --navigateToChanged --ignoreCache",
"server:production": "npm run server -e production",
"start": "npm run babel && npm run server",
"start:production": "npm run babel && npm run server:production",
"algolia": "atomic-algolia"