feat: remove vendor from prod builds (#16807)

pull/16821/head
Alex Boatwright 2020-02-11 07:58:29 -08:00 committed by GitHub
parent 7188363c2b
commit b6d1cc6dd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -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',

View File

@ -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({

View File

@ -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',