mirror of
https://github.com/harness/drone.git
synced 2025-05-03 22:13:32 +08:00
Fix Blueprintjs CSS has higher priority than UICore in local dev mode (#1233)
This commit is contained in:
parent
83aa52c65e
commit
aacc1b88cf
@ -26,6 +26,7 @@ const HOST = 'localhost'
|
||||
const PORT = process.env.PORT ?? 3020
|
||||
const STANDALONE = process.env.STANDALONE === 'true'
|
||||
const CONTEXT = process.cwd()
|
||||
const prodConfig = require('./webpack.prod')
|
||||
|
||||
console.info(`Starting development build... http://${HOST}:${PORT}`)
|
||||
console.info('Environment variables:')
|
||||
@ -33,14 +34,18 @@ console.table({ STANDALONE, HOST, PORT, API_URL })
|
||||
|
||||
const devConfig = {
|
||||
mode: 'development',
|
||||
context: CONTEXT,
|
||||
entry: path.resolve(CONTEXT, '/src/index.tsx'),
|
||||
devtool: 'cheap-module-source-map',
|
||||
cache: { type: 'filesystem' },
|
||||
output: {
|
||||
publicPath: STANDALONE ? '/' : 'auto'
|
||||
},
|
||||
optimization: STANDALONE ? { runtimeChunk: 'single' } : {},
|
||||
optimization: STANDALONE
|
||||
? {
|
||||
runtimeChunk: 'single',
|
||||
splitChunks: prodConfig.optimization.splitChunks
|
||||
}
|
||||
: {},
|
||||
devServer: {
|
||||
hot: true,
|
||||
host: HOST,
|
||||
|
@ -20,7 +20,6 @@ const CONTEXT = process.cwd()
|
||||
const path = require('path')
|
||||
|
||||
const prodConfig = {
|
||||
context: CONTEXT,
|
||||
mode: 'production',
|
||||
entry: path.resolve(CONTEXT, '/src/index.tsx'),
|
||||
devtool: process.env.ENABLE_SOURCE_MAP ? 'source-map' : false,
|
||||
|
Loading…
Reference in New Issue
Block a user