typescript(pleix-frontend): inital commit
Signed-off-by: prescientmoon <git@moonythm.dev>
This commit is contained in:
parent
047d724e9a
commit
bffd04906b
13 changed files with 8212 additions and 0 deletions
typescript/pleix-frontend
38
typescript/pleix-frontend/webpack.config.js
Normal file
38
typescript/pleix-frontend/webpack.config.js
Normal file
|
@ -0,0 +1,38 @@
|
|||
const HtmlWebPackPlugin = require("html-webpack-plugin");
|
||||
// const ExtractTextPlugin = require('extract-text-webpack-plugin');
|
||||
|
||||
module.exports = {
|
||||
devtool: 'inline-source-map',
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.ts$/,
|
||||
use: 'ts-loader',
|
||||
exclude: /node_modules/
|
||||
},
|
||||
{
|
||||
test: /\.html$/,
|
||||
use: [
|
||||
{
|
||||
loader: "html-loader"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
plugins: [
|
||||
new HtmlWebPackPlugin({
|
||||
template: "./src/index.html",
|
||||
filename: "./index.html"
|
||||
})
|
||||
],
|
||||
resolve: {
|
||||
extensions: [
|
||||
".js",
|
||||
".ts"
|
||||
]
|
||||
},
|
||||
entry: [
|
||||
"./src/index.ts"
|
||||
]
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue