reservations_display/webpack.config.js
Adam Goldsmith d4dbaaf344 Drop dependency on Vue and use Webpack instead of Vite
Couldn't get Vue/Vite to transpile for ios 8 correctly, and I don't
really need it anyway...
2021-11-15 19:37:40 -05:00

49 lines
925 B
JavaScript

const path = require('path');
module.exports = {
mode: 'development',
entry: './src/index.ts',
devServer: {
proxy: {
'/calendar': {
target: 'https://calendar.google.com',
changeOrigin: true,
},
},
},
devtool: "eval-cheap-source-map",
module: {
rules: [
{
test: /\.m?js$/,
exclude: /node_modules/,
loader: 'babel-loader',
},
{
test: /\.tsx?$/,
exclude: /node_modules/,
use: [
'babel-loader',
{
loader: 'ts-loader',
options: {
appendTsSuffixTo: [/\.vue$/],
},
}
],
},
{
test: /\.css$/i,
use: ["style-loader", "css-loader"],
}
],
},
resolve: {
extensions: ['.tsx', '.ts', '.js'],
},
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'bundle.js',
},
};