mirror of
https://github.com/classchartsapi/classcharts-api-js.git
synced 2026-05-14 11:58:13 +00:00
feat: web support (#11)
This commit is contained in:
parent
f742e72b26
commit
6392ee6d1a
10 changed files with 2122 additions and 294 deletions
30
webpack.config.js
Normal file
30
webpack.config.js
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
/* eslint-disable @typescript-eslint/no-var-requires */
|
||||
/* eslint-disable no-undef */
|
||||
const path = require("path");
|
||||
|
||||
module.exports = {
|
||||
mode: "development",
|
||||
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