mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-23 19:01:28 +00:00
Compare commits
3 Commits
cloudshell
...
sung_test_
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b9c3936ded | ||
|
|
6c6d03946e | ||
|
|
842d821243 |
@@ -243,12 +243,12 @@ module.exports = function (_env = {}, argv = {}) {
|
|||||||
extensions: [".tsx", ".ts", ".js"],
|
extensions: [".tsx", ".ts", ".js"],
|
||||||
},
|
},
|
||||||
optimization: {
|
optimization: {
|
||||||
minimize: mode === "production" ? true : false,
|
minimize: true,
|
||||||
minimizer: [
|
minimizer: [
|
||||||
new TerserPlugin({
|
new TerserPlugin({
|
||||||
terserOptions: {
|
terserOptions: {
|
||||||
// These options increase our initial bundle size by ~5% but the builds are significantly faster and won't run out of memory
|
// These options increase our initial bundle size by ~5% but the builds are significantly faster and won't run out of memory
|
||||||
compress: false,
|
// compress: false,
|
||||||
mangle: {
|
mangle: {
|
||||||
keep_fnames: true,
|
keep_fnames: true,
|
||||||
keep_classnames: true,
|
keep_classnames: true,
|
||||||
@@ -256,10 +256,32 @@ module.exports = function (_env = {}, argv = {}) {
|
|||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
|
// splitChunks: {
|
||||||
|
// chunks: "all",
|
||||||
|
// cacheGroups: {
|
||||||
|
// fluentIcons: {
|
||||||
|
// test: /[\\/]node_modules[\\/]@fluentui[\\/](font-icons-mdl2|react-icons)/,
|
||||||
|
// name: "fluent-icons",
|
||||||
|
// chunks: "all",
|
||||||
|
// enforce: true,
|
||||||
|
// },
|
||||||
|
// },
|
||||||
|
// runtimeChunk: false,
|
||||||
|
// },
|
||||||
},
|
},
|
||||||
watch: false,
|
watch: false,
|
||||||
// Hack since it is hard to disable watch entirely with webpack dev server https://github.com/webpack/webpack-dev-server/issues/1251#issuecomment-654240734
|
// Hack since it is hard to disable watch entirely with webpack dev server https://github.com/webpack/webpack-dev-server/issues/1251#issuecomment-654240734
|
||||||
watchOptions: isCI ? { poll: 24 * 60 * 60 * 1000 } : {},
|
watchOptions: isCI ? { poll: 24 * 60 * 60 * 1000 } : {},
|
||||||
|
stats: {
|
||||||
|
all: true, // Include all stats information
|
||||||
|
errors: true,
|
||||||
|
warnings: true,
|
||||||
|
modules: true,
|
||||||
|
chunks: true,
|
||||||
|
chunkModules: true,
|
||||||
|
assets: true,
|
||||||
|
children: true,
|
||||||
|
},
|
||||||
|
|
||||||
/** @type {import("webpack-dev-server").Configuration}*/
|
/** @type {import("webpack-dev-server").Configuration}*/
|
||||||
devServer: {
|
devServer: {
|
||||||
|
|||||||
Reference in New Issue
Block a user