UNPKG

3d-pie-chart

Version:
28 lines (27 loc) 658 B
const path = require('path'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const { CleanWebpackPlugin } = require('clean-webpack-plugin') module.exports = { mode: 'development', entry: './src/index.js', output: { path: path.resolve(__dirname, 'dist'), filename: '3d-pie.bundle.js', libraryTarget: 'window' }, devtool: 'inline-source-map', plugins: [ new CleanWebpackPlugin({ cleanStaleWebpackAssets: false }), new HtmlWebpackPlugin({ template: './index.html', inject: 'head' }) ], devServer: { contentBase: path.join(__dirname, 'dist'), compress: true, port: 9000 } };