Skip to content

Commit 6485fc1

Browse files
bug fix
1 parent 1ad7b79 commit 6485fc1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ module.exports = {
8282
},
8383

8484
plugins: [
85-
new ExtractText('output.html')
85+
new ExtractText('file.html')
8686
]
8787
}
8888
```
@@ -102,7 +102,7 @@ with [handlebars-loader](https://github.com/altano/handlebars-loader)
102102
{ test: /\.hbs$/, loader: 'handlebars!html!posthtml' }
103103
```
104104

105-
with [file-loader](https://github.com/webpack/file-loader) and [val-loader](https://github.com/webpack/val-loader)
105+
with [file-loader](https://github.com/webpack/file-loader) && [val-loader](https://github.com/webpack/val-loader)
106106

107107
```javascript
108108

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module.exports = function (source) {
2020
if (options.pack) {
2121
plugins = plugins[options.pack]
2222
}
23-
if (typeof plugins === 'undefined' || typeof plugins === 'object') {
23+
if (typeof plugins === 'undefined' || !options.pack && typeof plugins === 'object') {
2424
plugins = plugins.defaults || []
2525
}
2626

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "posthtml-loader",
3-
"version": "0.8.1",
3+
"version": "0.8.2",
44
"engine": ">=4",
55
"main": "index.js",
66
"dependencies": {

0 commit comments

Comments
 (0)