File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed
Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 6161 "chalk" : " ^4.1.0" ,
6262 "cli-table3" : " 0.6.0" ,
6363 "commander" : " ^6.2.1" ,
64+ "compression" : " ^1.7.4" ,
6465 "core-js" : " ^3.8.2" ,
6566 "cpy" : " ^8.1.1" ,
6667 "css-loader" : " ^3.6.0" ,
9596 "devDependencies" : {
9697 "@storybook/builder-webpack5" : " 6.2.1" ,
9798 "@types/case-sensitive-paths-webpack-plugin" : " ^2.1.4" ,
99+ "@types/compression" : " ^1.7.0" ,
98100 "@types/cpy" : " ^7.1.3" ,
99101 "@types/dotenv-webpack" : " ^3.0.0" ,
100102 "@types/ip" : " ^1.1.0" ,
Original file line number Diff line number Diff line change 11import express , { Router } from 'express' ;
2+ import compression from 'compression' ;
23
34import { Builder , logConfig , Options } from '@storybook/core-common' ;
45
@@ -20,6 +21,8 @@ export async function storybookDevServer(options: Options) {
2021 const app = express ( ) ;
2122 const server = await getServer ( app , options ) ;
2223
24+ app . use ( compression ( { level : 1 } ) ) ;
25+
2326 if ( typeof options . extendServer === 'function' ) {
2427 options . extendServer ( server ) ;
2528 }
Original file line number Diff line number Diff line change 51545154 resolved "https://registry.yarnpkg.com/@types/common-tags/-/common-tags-1.8.0.tgz#79d55e748d730b997be5b7fce4b74488d8b26a6b"
51555155 integrity sha512-htRqZr5qn8EzMelhX/Xmx142z218lLyGaeZ3YR8jlze4TATRU9huKKvuBmAJEW4LCC4pnY1N6JAm6p85fMHjhg==
51565156
5157+ "@types/compression@^1.7.0":
5158+ version "1.7.0"
5159+ resolved "https://registry.yarnpkg.com/@types/compression/-/compression-1.7.0.tgz#8dc2a56604873cf0dd4e746d9ae4d31ae77b2390"
5160+ integrity sha512-3LzWUM+3k3XdWOUk/RO+uSjv7YWOatYq2QADJntK1pjkk4DfVP0KrIEPDnXRJxAAGKe0VpIPRmlINLDuCedZWw==
5161+ dependencies:
5162+ "@types/express" "*"
5163+
51575164"@types/configstore@*":
51585165 version "4.0.0"
51595166 resolved "https://registry.yarnpkg.com/@types/configstore/-/configstore-4.0.0.tgz#cb718f9507e9ee73782f40d07aaca1cd747e36fa"
You can’t perform that action at this time.
0 commit comments