Skip to content

Commit

Permalink
add minify js
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcomac committed Jul 2, 2024
1 parent 0e747b0 commit 3b0fa34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build-css": "sass src/scss/household.scss css/household.css --style=expanded --no-source-map",
"build-js": "npx rollup -c --bundleConfigAsCjs",
"watch": "sass src/scss/household.scss css/household.css --style=expanded --source-map --watch",
"minify": "postcss css/style.css -u cssnano -o css/style.min.css && npx terser build/household.js -o build/household.min.js && npx rimraf build/household.js",
"minify-js": "npx terser build/household.js -o build/household.min.js && npx rimraf build/household.js",
"release": "node release.cjs"
},
"browserslist": [
Expand Down
2 changes: 1 addition & 1 deletion release.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ async function createRelease() {
// Executa os comandos necessários
await runCommand('npm run build-css');
await runCommand('npm run build-js');
// await runCommand('npm run minify');
await runCommand('npm run minify-js');

// Verifica se o diretório de destino existe, se não, cria
await fs.ensureDir(destDir);
Expand Down

0 comments on commit 3b0fa34

Please sign in to comment.