UNPKG

web-highlighter

Version:

✨A no-runtime dependency lib for text highlighting & persistence on any website ✨🖍️

20 lines (18 loc) 552 B
// cSpell:ignore devtool,contenthash /** * config for building example bundle (homepage) */ const {staticDirname, examplePath} = require('./paths.js'); const CleanWebpackPlugin = require('clean-webpack-plugin'); const merge = require('webpack-merge'); const baseConfig = require('./base.example.config'); const config = { mode: 'production', plugins: [ new CleanWebpackPlugin([staticDirname], {root: examplePath}) ], output: { filename: 'index.[contenthash:8].js' } }; module.exports = merge(baseConfig, config);