sting
Version:
Sting! Is a tiny lightweight, themable and highly customizable notification-popup.
25 lines (23 loc) • 514 B
JavaScript
const path = require('path');
module.exports = {
entry: './src/index.ts',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'sting.js'
},
module: {
rules: [
// all files with a `.ts` or `.tsx` extension will be handled by `ts-loader`
{ test: /\.tsx?$/, loader: "ts-loader" },
{
test: /\.html$/,
exclude: /node_modules/,
use: { loader: 'html-loader' }
}
]
},
resolve: {
// Add `.ts` and `.tsx` as a resolvable extension.
extensions: ['.ts', '.tsx', '.js']
},
};