farpatch-ui/webpack.config.js
Sean Cross 32c1b7d54b getting some structure
Things like reflowing works, as well as switching between
"applications". Things seem to be coming along nicely.

Signed-off-by: Sean Cross <sean@xobs.io>
2023-12-01 23:49:39 +08:00

36 lines
879 B
JavaScript

const path = require('path');
const CopyPlugin = require("copy-webpack-plugin");
const OUTPUT = "build";
module.exports = {
mode: 'development',
entry: path.resolve(__dirname, './src/index.ts'),
plugins: [
new CopyPlugin({
patterns: [
{ from: "static", to: path.resolve(__dirname, OUTPUT) },
{ from: "node_modules/xterm/css/xterm.css", to: path.resolve(__dirname, OUTPUT, 'css')}
],
}),
],
performance: {
maxAssetSize: 5120000
},
module: {
rules: [
{
test: /\.tsx?$/,
use: 'ts-loader',
exclude: /node_modules/,
},
],
},
resolve: {
extensions: ['.ts', '.js'],
},
output: {
filename: 'main.js',
path: path.resolve(__dirname, OUTPUT),
},
};