mirror of
https://github.com/Choices-js/Choices.git
synced 2024-06-28 10:20:08 +02:00
92d5e49fb6
* configure tasks * configure VSCode debugging * adjust VSCode project settings * fix bdd * fix cypress path on macos/linux * enforce checkJs * make buildAndWatch default build task * recommend and configure mocha-sidebar * tune settings
25 lines
708 B
JavaScript
25 lines
708 B
JavaScript
const path = require('path');
|
|
const { HotModuleReplacementPlugin } = require('webpack');
|
|
const deepMerge = require('deepmerge');
|
|
const baseConfig = require('./webpack.config.base');
|
|
|
|
module.exports = deepMerge(
|
|
baseConfig,
|
|
/** @type {import('webpack').Configuration} */ ({
|
|
mode: 'development',
|
|
output: {
|
|
path: path.resolve(__dirname, './public'),
|
|
filename: 'choices.min.js',
|
|
publicPath: 'http://localhost:3001/assets/scripts/',
|
|
},
|
|
devtool: 'source-map',
|
|
entry: ['webpack/hot/dev-server', 'webpack-hot-middleware/client'],
|
|
plugins: [new HotModuleReplacementPlugin()],
|
|
}),
|
|
{
|
|
arrayMerge(target, source) {
|
|
return [...source, ...target];
|
|
},
|
|
},
|
|
);
|