Use webpack to deliver underscore (and use newest version)
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user