diff options
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/package.json b/package.json index e2f6991b..ba5e71f7 100644 --- a/package.json +++ b/package.json @@ -6,9 +6,9 @@ "author": "ffflabs <amenadiel@gmail.com>", "license": "MIT", "scripts": { - "build": "npm run compile_less && workbox injectManifest workbox-config.js && yarn disable_development_mode", - "disable_development_mode":"sed -i 's/development_assets=true/development_assets=false/' assets/templates/components/common_head.twig ", - "compile_less": "lessc assets/themes/global.less assets/themes/global.css", + "watch":"less-watch-compiler --config .build/less-watch-compiler.config.json", + "build": "npm run compile_less && workbox injectManifest workbox-config.js ", + "compile_less": "lessc assets/themes/global.less assets/themes/global.css", "eslint": "eslint --fix --ext js --ignore-path .eslintignore assets", "prettier": "prettier -c --config .prettierrc assets/{js,themes}/*" }, @@ -18,13 +18,15 @@ "eslint": "^7.8.1", "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "^3.1.4", + "less-watch-compiler": "^1.14.6", "lessc": "^1.0.2", "melody-idom": "^1.7.5", "melody-runtime": "^1.7.5", "prettier": "^2.1.1", "prettier-plugin-twig-melody": "^0.4.6", "tslib": "^2.0.1", - "typescript": "^4.0.3" + "typescript": "^4.0.3", + "workbox-cli": "^6.0.2" }, "dependencies": {} } |