UNPKG

@charles-owen/rtftohtml

Version:
38 lines (36 loc) 1.03 kB
const path = require('path'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const webpack = require('webpack'); module.exports = { entry: { app: './index.js' }, devServer: { contentBase: './dist', hot: true }, plugins: [ // new CleanWebpackPlugin(['dist']), new HtmlWebpackPlugin({ title: 'RtfToHtml', filename: 'index.html', template: 'src/html/index.html', inject: 'head' }), new webpack.HotModuleReplacementPlugin() ], module: { rules: [ { test: /\.js$/, exclude: /(node_modules|bower_components)/, use: { loader: 'babel-loader', options: { presets: ['@babel/preset-env'], plugins: ['@babel/plugin-transform-runtime'] } } } ] } };