🔨 Setup Typescript

This commit is contained in:
Alicia Sykes
2024-04-13 12:33:16 +01:00
parent a6381a4a7e
commit 7f45c29931
4 changed files with 3744 additions and 2888 deletions

View File

@@ -26,6 +26,7 @@ const configureWebpack = {
module: {
rules: [
{ test: /.svg$/, loader: 'vue-svg-loader' },
{ test: /\.tsx?$/, loader: 'ts-loader', options: { appendTsSuffixTo: [/\.vue$/] } },
],
},
};
@@ -34,7 +35,7 @@ const configureWebpack = {
const devServer = {
contentBase: [
path.join(__dirname, 'public'),
path.join(__dirname, 'user-data'),
path.join(__dirname, process.env.USER_DATA_DIR || 'user-data'),
],
watchContentBase: true,
publicPath: '/',