Files
VOREStation/tgui/rspack.config-dev.ts
T
Kashargul ebebb87497 RS Pack try 2 (#17962)
* guess we'll try again

* .

* bun up

* .

* .

* seach exclude

* another test

* testing some changes from JL

* .

* dev

* back to dir

* .

* .

* bun cache

* urg

* try this

* self caches

* dependency up

* Update ci.yml
2025-07-10 08:53:25 +02:00

30 lines
710 B
TypeScript

import path from 'node:path';
import rspack, { type Configuration } from '@rspack/core';
import oldConfig, { createStats } from './rspack.config';
export const config = {
...oldConfig,
devtool: 'cheap-module-source-map',
devServer: {
hot: true,
},
mode: 'development',
output: {
...oldConfig.output,
path: path.resolve(import.meta.dirname, './public/.tmp'),
},
plugins: [
new rspack.CssExtractRspackPlugin({
chunkFilename: '[name].bundle.css',
filename: '[name].bundle.css',
}),
new rspack.EnvironmentPlugin({
NODE_ENV: 'development',
}),
new rspack.HotModuleReplacementPlugin(),
],
stats: createStats(false),
} satisfies Configuration;