|
@@ -1,6 +1,12 @@
|
|
/* global __dirname, module */
|
|
/* global __dirname, module */
|
|
const path = require('path');
|
|
const path = require('path');
|
|
|
|
|
|
|
|
+bootstrap_ignore_modules = ['carousel', 'scrollspy'];
|
|
|
|
+
|
|
|
|
+BOOTSTRAP_IGNORE_MODULES = (process.env.BOOTSTRAP_IGNORE_MODULES || '').replace(/ /g, '').trim();
|
|
|
|
+if(BOOTSTRAP_IGNORE_MODULES.length > 0)
|
|
|
|
+ bootstrap_ignore_modules = bootstrap_ignore_modules.concat(BOOTSTRAP_IGNORE_MODULES.split(','));
|
|
|
|
+
|
|
module.exports = {
|
|
module.exports = {
|
|
output: {
|
|
output: {
|
|
path: path.resolve(__dirname, 'dist'), // Output path for generated bundles
|
|
path: path.resolve(__dirname, 'dist'), // Output path for generated bundles
|
|
@@ -103,7 +109,7 @@ module.exports = {
|
|
loader: 'bootstrap.native-loader',
|
|
loader: 'bootstrap.native-loader',
|
|
options: {
|
|
options: {
|
|
bs_version: 4,
|
|
bs_version: 4,
|
|
- ignore: ['carousel', 'scrollspy']
|
|
|
|
|
|
+ ignore: bootstrap_ignore_modules
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}],
|
|
}],
|