Add custom content before and after the loaded source.
npm install wrap-loaderAdds custom content before and after the loaded source.
``sh`
$ npm install --save wrap-loader
In your webpack.config.js file:
`js
module.exports = {
module: {
loaders: [{
test: /\.less$/,
loader: 'style!css!less!wrap?less'
}]
},
wrap: {
less: {
before: [
'@import "~bootstrap/less/variables.less";',
'@import "~bootstrap/less/mixins.less";'
],
after: '@import "~utils/debug.less";'
}
}
};
`
* Code: git clone git://github.com/unindented/wrap-loader.git`
* Home:
* Daniel Perez Alvarez (unindented@gmail.com)
Copyright (c) 2014 Daniel Perez Alvarez (unindented.org). This is free software, and may be redistributed under the terms specified in the LICENSE file.