Skip to content

Commit

Permalink
refact: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
fech-dev committed Aug 26, 2021
1 parent 1178cc1 commit f767232
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
1 change: 0 additions & 1 deletion generator/helpers.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const fs = require('fs')
const path = require('path')

module.exports = function (api) {
return {
Expand Down
16 changes: 0 additions & 16 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
const { merge } = require('lodash/object')
const bootstrapCssAbstractsImports = require('./bootstrapCssAbstractsImports')

module.exports = (api, opts) => {
// Resolve asset references from components
api.chainWebpack(config => {
Expand Down Expand Up @@ -32,17 +29,4 @@ module.exports = (api, opts) => {
})
})

//Add bootstrap's variables/functions/mixins globally
if(opts.useScss && opts.injectAbstracts){
merge(opts.css, {
loaderOptions:{
sass: {
additionalData: bootstrapCssAbstractsImports.join('\n')
},
scss: {
additionalData: [...bootstrapCssAbstractsImports, ''].join(';\n')
}
}
})
}
}

0 comments on commit f767232

Please sign in to comment.