assets-webpack-plugin
Advanced tools
Comparing version 3.9.0 to 3.9.1
@@ -11,2 +11,6 @@ # Change Log | ||
## 3.9.1 - 2018-08-06 | ||
- `useCompilerPath` option to override path with webpack output path set in config. | ||
## 3.9.0 - 2018-08-06 | ||
@@ -13,0 +17,0 @@ |
@@ -22,3 +22,4 @@ 'use strict'; | ||
fullPath: true, | ||
manifestFirst: true | ||
manifestFirst: true, | ||
useCompilerPath: false | ||
}, options); | ||
@@ -34,3 +35,3 @@ this.writer = createQueuedWriter(createOutputWriter(this.options)); | ||
self.options.path = path.resolve(self.options.path || compiler.options.output.path || '.'); | ||
self.options.path = self.options.useCompilerPath ? compiler.options.output.path : path.resolve(self.options.path || '.'); | ||
@@ -106,3 +107,2 @@ var afterEmit = function afterEmit(compilation, callback) { | ||
} | ||
// use _value if the uglify plugin was applied | ||
manifestEntry.text = entryText; | ||
@@ -109,0 +109,0 @@ } |
@@ -18,3 +18,4 @@ var fs = require('fs') | ||
fullPath: true, | ||
manifestFirst: true | ||
manifestFirst: true, | ||
useCompilerPath: false | ||
}, options) | ||
@@ -30,3 +31,4 @@ this.writer = createQueuedWriter(createOutputWriter(this.options)) | ||
self.options.path = path.resolve(self.options.path || compiler.options.output.path || '.') | ||
self.options.path = self.options.useCompilerPath | ||
? compiler.options.output.path : path.resolve(self.options.path || '.') | ||
@@ -105,3 +107,2 @@ var afterEmit = (compilation, callback) => { | ||
} | ||
// use _value if the uglify plugin was applied | ||
manifestEntry.text = entryText | ||
@@ -108,0 +109,0 @@ } |
{ | ||
"name": "assets-webpack-plugin", | ||
"version": "3.9.0", | ||
"version": "3.9.1", | ||
"description": "Emits a json file with assets paths", | ||
@@ -264,2 +264,2 @@ "main": "dist/index.js", | ||
] | ||
} | ||
} |
@@ -174,3 +174,13 @@ # assets-webpack-plugin | ||
Will default to the highest level of the project unless useCompilerPath is specified. | ||
#### `useCompilerPath` | ||
```js | ||
new AssetsPlugin({useCompilerPath: true}) | ||
``` | ||
Will override the path to use the compiler output path set in your webpack config. | ||
```js | ||
new AssetsPlugin({path: path.join(__dirname, 'app', 'views')}) | ||
@@ -177,0 +187,0 @@ ``` |
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
34742
497
296