Socket
Socket
Sign inDemoInstall

assets-webpack-plugin

Package Overview
Dependencies
Maintainers
2
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

assets-webpack-plugin - npm Package Compare versions

Comparing version 3.9.0 to 3.9.1

4

changelog.md

@@ -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 @@

6

dist/index.js

@@ -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 @@ ```

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