mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-01-26 21:24:13 +00:00
Fixes
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"allowJs": true,
|
"allowJs": true,
|
||||||
"sourceMap": false,
|
"sourceMap": true,
|
||||||
"noImplicitAny": true,
|
"noImplicitAny": true,
|
||||||
"noImplicitReturns": true,
|
"noImplicitReturns": true,
|
||||||
"noFallthroughCasesInSwitch": true,
|
"noFallthroughCasesInSwitch": true,
|
||||||
|
|||||||
@@ -109,6 +109,7 @@ module.exports = function(env = {}, argv = {}) {
|
|||||||
mode === "development"
|
mode === "development"
|
||||||
? new webpack.EvalSourceMapDevToolPlugin({})
|
? new webpack.EvalSourceMapDevToolPlugin({})
|
||||||
: new webpack.SourceMapDevToolPlugin({
|
: new webpack.SourceMapDevToolPlugin({
|
||||||
|
// test: [".js", ".mjs", ".css", ".ts", ".tsx"],
|
||||||
filename: "[name].js.map",
|
filename: "[name].js.map",
|
||||||
exclude: [/vendor/]
|
exclude: [/vendor/]
|
||||||
});
|
});
|
||||||
@@ -174,6 +175,7 @@ module.exports = function(env = {}, argv = {}) {
|
|||||||
patterns: [{ from: "DataExplorer.nuspec" }, { from: "web.config" }, { from: "quickstart/*.zip" }]
|
patterns: [{ from: "DataExplorer.nuspec" }, { from: "web.config" }, { from: "quickstart/*.zip" }]
|
||||||
}),
|
}),
|
||||||
new EnvironmentPlugin(envVars),
|
new EnvironmentPlugin(envVars),
|
||||||
|
new webpack.optimize.LimitChunkCountPlugin({ maxChunks: 1 }),
|
||||||
sourceMapPlugin
|
sourceMapPlugin
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -216,6 +218,7 @@ module.exports = function(env = {}, argv = {}) {
|
|||||||
minimize: mode === "production" ? true : false,
|
minimize: mode === "production" ? true : false,
|
||||||
minimizer: [
|
minimizer: [
|
||||||
new TerserPlugin({
|
new TerserPlugin({
|
||||||
|
sourceMap: true,
|
||||||
cache: ".cache/terser",
|
cache: ".cache/terser",
|
||||||
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
|
||||||
|
|||||||
Reference in New Issue
Block a user