Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mcilurzo committed Jul 5, 2024
1 parent 59caff0 commit 7cd1e3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ module.exports = function (config) {

// Can be activated by running "SSR=1 npm start" on Unix systems
if (process.env.BUILD_MODE === 'production' || process.env.SSR) {
/*
config.setQuietMode(false);
console.log(`Activated SSR plugin`);
config.addPlugin(litPlugin, {
Expand All @@ -30,7 +31,7 @@ module.exports = function (config) {
'./node_modules/@sbb-esta/lyne-elements/index.js',
'./node_modules/@sbb-esta/lyne-elements-experimental/index.js',
],
});
});*/
} else {
console.log(`SSR plugin not active`);
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"html-minify": "html-minifier --input-dir dist --output-dir dist --file-ext html --remove-comments --collapse-whitespace --conservative-collapse --minify-js false --minify-css true",
"prestart": "npm run copy:components && npm run bundle:lyne",
"start": "node --max-old-space-size=8000 ./node_modules/@11ty/eleventy/cmd.js --serve",
"build": "npm run copy:components && npm run bundle:lyne && node --max-old-space-size=8000 ./node_modules/@11ty/eleventy/cmd.js && npm run html-minify && gzipper compress ./dist"
"build": "npm run copy:components && npm run bundle:lyne && BUILD_MODE=production node --max-old-space-size=8000 ./node_modules/@11ty/eleventy/cmd.js && npm run html-minify && gzipper compress ./dist",

},
"author": "Manuel Cilurzo",
Expand Down

0 comments on commit 7cd1e3c

Please sign in to comment.