reservations_display/webpack.config.js

55 lines
1.0 KiB
JavaScript
Raw Normal View History

const path = require('path');
module.exports = {
mode: 'development',
entry: './src/index.ts',
devServer: {
static: {
directory: path.join(__dirname, 'public'),
watch: {
ignored: /\.#.*/,
}
},
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',
},
};