Skip to content

Commit b51771e

Browse files
kylebuch8mwcz
authored andcommitted
adding gzip to browsersync (#316)
fixes #315
1 parent 0530d02 commit b51771e

File tree

3 files changed

+33
-12
lines changed

3 files changed

+33
-12
lines changed

package-lock.json

Lines changed: 30 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
"browser-sync": "^2.24.6",
4444
"chalk": "^2.4.1",
4545
"clean-html": "^1.5.0",
46+
"compression": "^1.7.3",
4647
"css-scss": "^0.1.1",
4748
"decomment": "^0.9.1",
4849
"del": "^3.0.0",

spandx.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ module.exports = {
1515
watchOptions: {
1616
ignoreInitial: true,
1717
ignored: ["node_modules"]
18-
}
18+
},
19+
middleware: [require("compression")()]
1920
}
2021
};

0 commit comments

Comments
 (0)