Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bootstrap-webpack

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bootstrap-webpack - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

7

index.loader.js
module.exports = function () {};
module.exports.pitch = function (remainingRequest) {
this.cacheable(true);
var config = require(this.resourcePath);
var postStyleLoaders = '';
if((typeof config.postStyleLoaders !== 'undefined') && (config.postStyleLoaders.length > 0)){
postStyleLoaders = config.postStyleLoaders.join('!') + '!';
}
return [
'require(' + JSON.stringify("-!" + require.resolve("style-loader") + '!' + require.resolve("css-loader") +
'require(' + JSON.stringify("-!" + postStyleLoaders + require.resolve("style-loader") + '!' + require.resolve("css-loader") +
'!' + require.resolve("less-loader") + '!' + require.resolve("./bootstrap-styles.loader.js") + '!' + remainingRequest) + ');',

@@ -7,0 +12,0 @@ 'require(' + JSON.stringify("-!" + require.resolve("./bootstrap-scripts.loader.js") + "!" + remainingRequest) + ');'

2

package.json

@@ -5,3 +5,3 @@ {

"main": "index.js",
"version": "0.0.2",
"version": "0.0.3",
"loader": "index.loader.js",

@@ -8,0 +8,0 @@ "keywords": [

@@ -93,2 +93,24 @@ bootstrap-webpack

@btn-default-bg: #eee;
```
```
### extract-text-webpack-plugin
Configure post style loaders in `bootstrap.config.js`.
Example:
``` javascript
module.exports = {
postStyleLoaders: [
require.resolve('extract-text-webpack-plugin/loader.js') + '?{"omit":1,"extract":true,"remove":true}'
],
scripts: {
...
},
styles: {
...
}
};
```
Install `extract-text-webpack-plugin` before using this configuration.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc