3d-pie-chart
Version:
Raphael plugin 3d pie chart
28 lines (27 loc) • 658 B
JavaScript
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
}
};