]>
src.bluestatic.org Git - ustaxviewer.git/blob - webpack.config.js
1 const path
= require('path');
2 const webpack
= require('webpack');
4 const ROOT
= path
.resolve(__dirname
, 'src');
8 main: './src/index.tsx'
12 extensions: ['.ts', '.tsx', '.js'],
23 exclude: /node_modules/,
26 loader: 'babel-loader',
27 options: { presets: ['solid'] }
39 localsConvention: 'camelCaseOnly',
41 localIdentName: '[path][name]_[local]_[hash:base64:2]'
51 contentBase: 'public/'
54 devtool: 'cheap-module-eval-source-map',
57 new (require('html-webpack-plugin'))({
59 template: 'public/index.html'