broccoli-webpack-cached
Advanced tools
Comparing version 0.0.1 to 0.1.1
12
index.js
@@ -8,3 +8,5 @@ 'use strict'; | ||
var PreventResolveSymlinkPlugin = require('./prevent-resolve-symlink-plugin'); | ||
function WebpackFilter(inputNode, options) { | ||
@@ -40,2 +42,12 @@ if (!(this instanceof WebpackFilter)) return new WebpackFilter(inputNode, options); | ||
// Prevent Webpack's ResultSymlinkPlugin from breaking relative paths in symlinked | ||
// modules (a common problem with Broccoli's highly symlinked output trees). | ||
// This is on by default, but can be disabled. | ||
if (this.options.preventSymlinkResolution === true || this.options.preventSymlinkResolution === undefined) { | ||
this.options.plugins = this.options.plugins || []; | ||
this.options.plugins.push( | ||
new webpack.ResolverPlugin([PreventResolveSymlinkPlugin]) | ||
); | ||
} | ||
return webpack(this.options); | ||
@@ -42,0 +54,0 @@ } |
{ | ||
"name": "broccoli-webpack-cached", | ||
"version": "0.0.1", | ||
"version": "0.1.1", | ||
"description": "Yet another webpack plugin for Broccoli. This one relies on webpack's caching for speed, but does it in a way that works well as a broccoli plugin (symlinking from the webpack cache to the output folder as needed).", | ||
@@ -13,3 +13,4 @@ "main": "index.js", | ||
"devDependencies": {}, | ||
"author": "tfinley@hubspot.com" | ||
"author": "tfinley@hubspot.com", | ||
"repository" : "timmfin/broccoli-webpack-cached" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
6303
5
78