mirror of
https://github.com/classchartsapi/classcharts-api-js.git
synced 2026-05-14 11:58:13 +00:00
chore: fix webpack config
This commit is contained in:
parent
cb27134996
commit
d5b07cffc5
1 changed files with 0 additions and 0 deletions
30
webpack.config.cjs
Normal file
30
webpack.config.cjs
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
/* eslint-disable @typescript-eslint/no-var-requires */
|
||||
/* eslint-disable no-undef */
|
||||
const path = require("path");
|
||||
|
||||
module.exports = {
|
||||
mode: "production",
|
||||
entry: "./src/index",
|
||||
devtool: "source-map",
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.tsx?$/,
|
||||
use: "ts-loader",
|
||||
exclude: /node_modules/,
|
||||
},
|
||||
],
|
||||
},
|
||||
output: {
|
||||
library: {
|
||||
name: "classchartsapi",
|
||||
type: "umd",
|
||||
},
|
||||
sourceMapFilename: "classcharts-api.map",
|
||||
path: path.resolve(__dirname, "build"),
|
||||
filename: "classcharts-api.js",
|
||||
},
|
||||
resolve: {
|
||||
extensions: [".ts", ".js"],
|
||||
},
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue