1 // Copyright 2020 Blue Static <https://www.bluestatic.org>
2 // This program is free software licensed under the GNU General Public License,
3 // version 3.0. The full text of the license can be found in LICENSE.txt.
4 // SPDX-License-Identifier: GPL-3.0-only
6 const path
= require('path');
7 const webpack
= require('webpack');
9 const ROOT
= path
.resolve(__dirname
, 'src');
13 main
: './src/index.tsx'
17 extensions
: ['.ts', '.tsx', '.js'],
28 exclude
: /node_modules
/,
31 loader
: 'babel-loader',
32 options
: { presets
: ['solid'] }
44 localsConvention
: 'camelCaseOnly',
46 localIdentName
: '[path][name]_[local]_[hash:base64:2]'
56 contentBase
: 'public/'
59 devtool
: 'eval-cheap-module-source-map',
62 new (require('html-webpack-plugin'))({
64 template
: 'public/index.html'