mirror of
https://github.com/citizenfx/cfx-server-data.git
synced 2025-12-12 06:14:09 +01:00
chat: wip rework as chat2
This commit is contained in:
45
resources/[gameplay]/chat/webpack.config.js
Normal file
45
resources/[gameplay]/chat/webpack.config.js
Normal file
@@ -0,0 +1,45 @@
|
||||
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||
const HtmlWebpackInlineSourcePlugin = require('html-webpack-inline-source-plugin');
|
||||
const VueLoaderPlugin = require('vue-loader/lib/plugin');
|
||||
const CopyPlugin = require('copy-webpack-plugin');
|
||||
|
||||
module.exports = {
|
||||
mode: 'production',
|
||||
entry: './html/main.ts',
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.ts$/,
|
||||
loader: 'ts-loader',
|
||||
exclude: /node_modules/,
|
||||
options: {
|
||||
appendTsSuffixTo: [/\.vue$/],
|
||||
}
|
||||
},
|
||||
{
|
||||
test: /\.vue$/,
|
||||
loader: 'vue-loader'
|
||||
},
|
||||
]
|
||||
},
|
||||
plugins: [
|
||||
new VueLoaderPlugin(),
|
||||
new HtmlWebpackPlugin({
|
||||
inlineSource: '.(js|css)$',
|
||||
template: './html/index.html',
|
||||
filename: 'ui.html'
|
||||
}),
|
||||
new HtmlWebpackInlineSourcePlugin(),
|
||||
new CopyPlugin([
|
||||
{ from: 'html/index.css', to: 'index.css' }
|
||||
]),
|
||||
],
|
||||
resolve: {
|
||||
extensions: [ '.ts', '.js' ]
|
||||
},
|
||||
output: {
|
||||
filename: 'chat.js',
|
||||
path: __dirname + '/dist/'
|
||||
},
|
||||
//devtool: 'inline-source-map'
|
||||
};
|
||||
Reference in New Issue
Block a user