chore: getting it to a working stage for now until there's types for stuff

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2021-06-08 16:44:24 +02:00
parent 8dfcf8cb55
commit e38d4cfab3
3 changed files with 11 additions and 44 deletions
-1
View File
@@ -137,7 +137,6 @@
"@types/rollup-plugin-peer-deps-external": "^2.2.0",
"@types/rollup-plugin-postcss": "^2.0.0",
"@types/tar": "^4.0.3",
"@types/webpack-dev-server": "^3.11.2",
"@types/yarnpkg__lockfile": "^1.1.4",
"del": "^6.0.0",
"mock-fs": "^4.13.0",
+2 -4
View File
@@ -45,8 +45,8 @@ export async function serveBundle(options: ServeOptions) {
const server = new WebpackDevServer(compiler, {
hot: !process.env.CI,
devMiddleware: {
// contentBase: paths.targetPublic,
publicPath: config.output?.publicPath as string,
stats: 'errors-warnings',
},
static: {
publicPath: config.output?.publicPath as string,
@@ -57,14 +57,12 @@ export async function serveBundle(options: ServeOptions) {
// See https://github.com/facebookincubator/create-react-app/issues/387.
disableDotRule: true,
},
// clientLogLevel: 'warning',
// stats: 'errors-warnings',
https: url.protocol === 'https:',
host,
port,
proxy: pkg.proxy,
// When the dev server is behind a proxy, the host and public hostname differ
// allowedHosts: [url.hostname],
firewall: [url.hostname],
});
await new Promise<void>((resolve, reject) => {