Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
cezaraugusto committed Dec 23, 2024
1 parent 0e26b82 commit f8b6769
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
5 changes: 2 additions & 3 deletions programs/develop/webpack/dev-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,8 @@ export async function devServer(projectPath: string, devOptions: DevOptions) {
'Access-Control-Allow-Origin': '*'
},
port: 'auto',
// WARN: Setting TRUE here causes the content_script
// entry of a react extension to be reloaded infinitely.
hot: 'only'

hot: true
}

const devServer = new WebpackDevServer(serverConfig, compiler)
Expand Down
4 changes: 1 addition & 3 deletions programs/develop/webpack/plugin-css/common-style-loaders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@ export async function commonStyleLoaders(
{
loader: require.resolve('css-loader'),
options: {
sourceMap: opts.mode === 'development',
// necessary if you use url('/path/to/some/asset.png|jpg|gif')
url: false
sourceMap: opts.mode === 'development'
}
}
].filter(Boolean)
Expand Down
2 changes: 0 additions & 2 deletions programs/develop/webpack/webpack-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ export default function webpackConfig(
},
resolve: {
modules: ['node_modules', path.join(projectPath, 'node_modules')],
mainFields: ['svelte', 'browser', 'module', 'main'],
conditionNames: ['svelte', 'browser'],
extensions: [
'.js',
'.mjs',
Expand Down

0 comments on commit f8b6769

Please sign in to comment.