mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Set minimize: false and transpileOnly: true to speed up build, as the output will not be used in production/runtime
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com>
This commit is contained in:
parent
de17ecb13f
commit
d569c104ba
@ -22,12 +22,18 @@ export default function (): webpack.Configuration {
|
|||||||
// e.g. require('@k8slens/extensions')
|
// e.g. require('@k8slens/extensions')
|
||||||
libraryTarget: "commonjs"
|
libraryTarget: "commonjs"
|
||||||
},
|
},
|
||||||
|
optimization: {
|
||||||
|
// we don't really need minimize
|
||||||
|
// default is true
|
||||||
|
minimize: false
|
||||||
|
},
|
||||||
module: {
|
module: {
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
test: /\.tsx?$/,
|
test: /\.tsx?$/,
|
||||||
loader: "ts-loader",
|
loader: "ts-loader",
|
||||||
options: {
|
options: {
|
||||||
|
transpileOnly: true,
|
||||||
// !! ts-loader will use tsconfig.json at folder root
|
// !! ts-loader will use tsconfig.json at folder root
|
||||||
// !! changes in tsconfig.json may have side effects
|
// !! changes in tsconfig.json may have side effects
|
||||||
// !! on '@k8slens/extensions' module
|
// !! on '@k8slens/extensions' module
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user