UNPKG

650 BJavaScriptView Raw
1const path = require('path')
2
3module.exports = {
4 mode: 'production',
5 devtool: 'source-map',
6 entry: './src/nft-card.ts',
7 output: {
8 filename: 'nft-card.min.js',
9 path: path.resolve(__dirname, 'dist'),
10 publicPath: '/'
11 },
12 resolve: {
13 extensions: ['.js', '.ts', '.css']
14 },
15 module: {
16 rules: [
17 {
18 test: /\.tsx?$/,
19 use: 'ts-loader',
20 exclude: /node_modules/
21 },
22 {
23 test: /\.css$/i,
24 use: ['style-loader', 'css-loader']
25 },
26 {
27 test: /\.(woff2|png)$/i,
28 use: [
29 {
30 loader: 'url-loader'
31 }
32 ]
33 }
34 ]
35 }
36}