mirror of
https://github.com/Choices-js/Choices.git
synced 2024-05-02 22:03:11 +02:00
6848970fd9
* simplify babel config * fix Cypress VSCode checks * introduce webpack base config * fix flacky cypress test * fix class properties definition * fix default export * upgrade affected deps, decrease bundlesize * run ESLint only on changed files
24 lines
632 B
JavaScript
24 lines
632 B
JavaScript
const path = require('path');
|
|
const { HotModuleReplacementPlugin } = require('webpack');
|
|
const deepMerge = require('deepmerge');
|
|
const baseConfig = require('./webpack.config.base');
|
|
|
|
module.exports = deepMerge(
|
|
baseConfig,
|
|
{
|
|
mode: 'development',
|
|
output: {
|
|
path: path.resolve(__dirname, './public'),
|
|
filename: 'choices.min.js',
|
|
publicPath: 'http://localhost:3001/assets/scripts/',
|
|
},
|
|
entry: ['webpack/hot/dev-server', 'webpack-hot-middleware/client'],
|
|
plugins: [new HotModuleReplacementPlugin()],
|
|
},
|
|
{
|
|
arrayMerge(target, source) {
|
|
return [...source, ...target];
|
|
},
|
|
},
|
|
);
|