feat: remove vendor from prod builds (#16807)
parent
7188363c2b
commit
b6d1cc6dd0
|
@ -1,5 +1,5 @@
|
|||
// Constants
|
||||
import {FLUX_RESPONSE_BYTES_LIMIT} from 'src/shared/constants'
|
||||
import {FLUX_RESPONSE_BYTES_LIMIT, API_BASE_PATH} from 'src/shared/constants'
|
||||
import {
|
||||
RATE_LIMIT_ERROR_STATUS,
|
||||
RATE_LIMIT_ERROR_TEXT,
|
||||
|
@ -37,7 +37,7 @@ export const runQuery = (
|
|||
query: string,
|
||||
extern?: File
|
||||
): CancelBox<RunQueryResult> => {
|
||||
const url = `/api/v2/query?${new URLSearchParams({orgID})}`
|
||||
const url = `${API_BASE_PATH}api/v2/query?${new URLSearchParams({orgID})}`
|
||||
|
||||
const headers = {
|
||||
'Content-Type': 'application/json',
|
||||
|
|
|
@ -112,10 +112,6 @@ module.exports = {
|
|||
filename: `${STATIC_DIRECTORY}[contenthash:10].css`,
|
||||
chunkFilename: `${STATIC_DIRECTORY}[id].[contenthash:10].css`,
|
||||
}),
|
||||
new webpack.DllReferencePlugin({
|
||||
context: path.join(__dirname, 'build'),
|
||||
manifest: require('./build/vendor-manifest.json'),
|
||||
}),
|
||||
new ForkTsCheckerWebpackPlugin(),
|
||||
new webpack.ProgressPlugin(),
|
||||
new webpack.EnvironmentPlugin({
|
||||
|
|
|
@ -30,6 +30,10 @@ module.exports = merge(common, {
|
|||
public: PUBLIC,
|
||||
},
|
||||
plugins: [
|
||||
new webpack.DllReferencePlugin({
|
||||
context: path.join(__dirname, 'build'),
|
||||
manifest: require('./build/vendor-manifest.json'),
|
||||
}),
|
||||
new BundleAnalyzerPlugin({
|
||||
analyzerMode: 'server',
|
||||
analyzerHost: '0.0.0.0',
|
||||
|
|
Loading…
Reference in New Issue