mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Webpack config fixes (#7423)
Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
This commit is contained in:
parent
7116e55d5a
commit
1308b5ed6c
@ -17,6 +17,7 @@
|
|||||||
"noImplicitAny": true,
|
"noImplicitAny": true,
|
||||||
"noUnusedLocals": true,
|
"noUnusedLocals": true,
|
||||||
"noImplicitReturns": true,
|
"noImplicitReturns": true,
|
||||||
|
"experimentalDecorators": true,
|
||||||
"isolatedModules": true,
|
"isolatedModules": true,
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
"allowJs": false,
|
"allowJs": false,
|
||||||
|
|||||||
@ -27,8 +27,10 @@
|
|||||||
"css-loader": "^6.7.2",
|
"css-loader": "^6.7.2",
|
||||||
"fork-ts-checker-webpack-plugin": "^7.3.0",
|
"fork-ts-checker-webpack-plugin": "^7.3.0",
|
||||||
"mini-css-extract-plugin": "^2.7.3",
|
"mini-css-extract-plugin": "^2.7.3",
|
||||||
|
"sass": "^1.58.2",
|
||||||
"sass-loader": "^13.2.0",
|
"sass-loader": "^13.2.0",
|
||||||
"style-loader": "^3.3.1",
|
"style-loader": "^3.3.1",
|
||||||
|
"tailwindcss": "^3.2.4",
|
||||||
"ts-loader": "^9.4.1",
|
"ts-loader": "^9.4.1",
|
||||||
"webpack": "^5.77.0",
|
"webpack": "^5.77.0",
|
||||||
"webpack-cli": "^4.10.0",
|
"webpack-cli": "^4.10.0",
|
||||||
|
|||||||
@ -157,6 +157,17 @@ Array [
|
|||||||
"sourceMap": false,
|
"sourceMap": false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Object {
|
||||||
|
"loader": "postcss-loader",
|
||||||
|
"options": Object {
|
||||||
|
"postcssOptions": Object {
|
||||||
|
"plugins": Array [
|
||||||
|
"tailwindcss",
|
||||||
|
],
|
||||||
|
},
|
||||||
|
"sourceMap": false,
|
||||||
|
},
|
||||||
|
},
|
||||||
Object {
|
Object {
|
||||||
"loader": "sass-loader",
|
"loader": "sass-loader",
|
||||||
"options": Object {
|
"options": Object {
|
||||||
@ -165,6 +176,18 @@ Array [
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
Object {
|
||||||
|
"test": /\\\\\\.\\(ttf\\|eot\\|woff2\\?\\)\\$/,
|
||||||
|
"type": "asset/resource",
|
||||||
|
},
|
||||||
|
Object {
|
||||||
|
"test": /\\\\\\.svg\\$/,
|
||||||
|
"type": "asset/source",
|
||||||
|
},
|
||||||
|
Object {
|
||||||
|
"test": /\\\\\\.\\(jpg\\|png\\|ico\\)\\$/,
|
||||||
|
"type": "asset/resource",
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
"name": "./some-other-entrypoint/index.ts",
|
"name": "./some-other-entrypoint/index.ts",
|
||||||
|
|||||||
@ -8,7 +8,6 @@ module.exports =
|
|||||||
entrypointFilePath,
|
entrypointFilePath,
|
||||||
outputDirectory,
|
outputDirectory,
|
||||||
});
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
...nodeConfig,
|
...nodeConfig,
|
||||||
|
|
||||||
@ -46,6 +45,16 @@ module.exports =
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
loader: "postcss-loader",
|
||||||
|
options: {
|
||||||
|
sourceMap: false,
|
||||||
|
postcssOptions: {
|
||||||
|
plugins: ["tailwindcss"],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
loader: "sass-loader",
|
loader: "sass-loader",
|
||||||
options: {
|
options: {
|
||||||
@ -54,6 +63,21 @@ module.exports =
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
test: /\.(ttf|eot|woff2?)$/,
|
||||||
|
type: "asset/resource",
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
test: /\.svg$/,
|
||||||
|
type: "asset/source", // exports the source code of the asset, so we get XML
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
test: /\.(jpg|png|ico)$/,
|
||||||
|
type: "asset/resource",
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user