UNPKG

globular_panel

Version:
30 lines (29 loc) 745 B
const path = require('path'); const MiniCssExtractPlugin = require("mini-css-extract-plugin") module.exports = { entry: './index.ts', devtool: 'inline-source-map', plugins: [new MiniCssExtractPlugin()], module: { rules: [ { test: /\.tsx?$/, use: 'ts-loader', exclude: /node_modules/, }, { test: /\.css$/, use: ["style-loader","css-loader"] }, { test: /\.(png|svg|jpe?g|gif|woff2?|ttf|eot)$/, use: [ 'file-loader' ] }, { test: /\.s[ac]ss$/i, use: ['style-loader','css-loader','sass-loader', ], } ], }, resolve: { extensions: [ '.tsx', '.ts', '.js' ], }, output: { filename: 'bundle.js', path: path.resolve(__dirname, 'dist'), }, };