Use webpack to deliver underscore (and use newest version)

This commit is contained in:
Sebastian Serth
2018-10-08 13:40:52 +02:00
parent 53e7739e05
commit 8faacd5577
6 changed files with 12 additions and 9 deletions

View File

@ -15,6 +15,7 @@ environment.plugins.prepend('Provide', new webpack.ProvidePlugin({
jquery: 'jquery',
'window.Tether': "tether",
Popper: ['popper.js', 'default'], // for Bootstrap 4
_: 'underscore',
})
);
@ -22,9 +23,10 @@ const envConfig = module.exports = environment;
const aliasConfig = module.exports = {
resolve: {
alias: {
jquery: 'jquery/src/jquery'
jquery: 'jquery/src/jquery',
underscore: 'underscore/underscore',
}
}
};
module.exports = merge(envConfig.toWebpackConfig(), aliasConfig);
module.exports = merge(envConfig.toWebpackConfig(), aliasConfig);