1 | const path = require('path');
|
2 |
|
3 | module.exports = {
|
4 | entry: './src/index.ts',
|
5 | module: {
|
6 |
|
7 | rules: [
|
8 | {
|
9 | test: /\.tsx?$/,
|
10 | use: 'ts-loader',
|
11 | exclude: /node_modules/,
|
12 | },
|
13 | ],
|
14 | },
|
15 | resolve: {
|
16 | extensions: ['.tsx', '.ts', '.js'],
|
17 | },
|
18 | output: {
|
19 |
|
20 | filename: 'index.js',
|
21 | path: path.resolve(__dirname, 'dist'),
|
22 | libraryTarget: "var",
|
23 | library: "tapeSlider"
|
24 | },
|
25 |
|
26 | }; |
\ | No newline at end of file |