const path = require('path'); const webpack = require('webpack'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const ScriptExtHtmlWebpackPlugin = require('script-ext-html-webpack-plugin'); module.exports = { context: path.resolve(__dirname, './spec'), mode: 'development', entry: { proxy: './proxy.spec.js' }, output: { path: path.resolve(__dirname, './dist'), filename: '[name].bundle.js', publicPath: '/packages/pouchdb-attachmentproxy/dist/' }, devServer: { contentBase: path.join(__dirname, 'dist') }, module: {}, plugins: [ new webpack.DefinePlugin({ __DEV__: true }), new HtmlWebpackPlugin({ template: 'index.html', inject: 'body' }), new ScriptExtHtmlWebpackPlugin({ module: /.*/ }) ] };