Skip to content

Commit

Permalink
ts
Browse files Browse the repository at this point in the history
  • Loading branch information
vickkie committed Apr 6, 2024
1 parent bcd06a8 commit 0623c34
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 23 deletions.
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@
"css-loader": "^5.0.0",
"css-minimizer-webpack-plugin": "^6.0.0",
"dotenv-webpack": "^8.0.1",
"html-minifier-terser": "^7.2.0",
"html-minifier-webpack-plugin": "^2.2.3",
"html-minimizer-webpack-plugin": "^5.0.0",
"html-webpack-plugin": "^5.0.0",
"mini-css-extract-plugin": "^2.8.1",
Expand Down
27 changes: 6 additions & 21 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,15 @@

{
"compilerOptions": {
"outDir": "./public/",
"noImplicitAny": true,
"module": "es6",
"target": "es5",
"module": "commonjs",
"strict": false,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"noImplicitAny": false,
"noImplicitThis": false,
"strictNullChecks": false,
"strictFunctionTypes": false,
"strictBindCallApply": false,
"strictPropertyInitialization": false,
"noImplicitReturns": false,
"noFallthroughCasesInSwitch": false,
"ignoreDeprecations": "5.0",
"noImplicitUseStrict": true,
"allowSyntheticDefaultImports": true,
"jsx": "react",
"allowJs": true,
"checkJs": false,
"noEmit": true,
"noUnusedLocals": false,
"noUnusedParameters": false
"moduleResolution": "node"
}
}




8 changes: 8 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ module.exports = {
projectSlider: "./App.jsx",
partnerModal: "./modal.jsx",
},
resolve: {
extensions: [".tsx", ".ts", ".jsx"],
},
output: {
filename: "[name].bundle.js", // outputs {file}.bundle.js
path: path.resolve(__dirname, "public"),
Expand All @@ -43,6 +46,11 @@ module.exports = {
},
},
},
{
test: /\.tsx?$/,
use: "ts-loader",
exclude: /node_modules/,
},
],
},
optimization: {
Expand Down

0 comments on commit 0623c34

Please sign in to comment.