Fix Issue 790 and 791 (#795)
* fix: distribute shims and webpack folders to NPM * docs: update README.md
This commit is contained in:
parent
0b26979839
commit
e135305f25
|
@ -75,7 +75,7 @@ module.exports = {
|
||||||
---
|
---
|
||||||
**NOTE**
|
**NOTE**
|
||||||
|
|
||||||
Previously it was recommended to access the `FilerWebpackPlugin` class by importing the main filer module. This was depracated due [this issue](https://github.com/filerjs/filer/issues/790). For anyone using ***filer version 1.3.1 or earlier***, please import the plugin class like this:
|
Previously it was recommended to access the `FilerWebpackPlugin` class by importing the main filer module. This was depracated due [this issue](https://github.com/filerjs/filer/issues/790). For anyone using ***filer version 1.4.0 or earlier***, please import the plugin class like this:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
var FilerWebpackPlugin = require('filer/src/webpack-plugin');
|
var FilerWebpackPlugin = require('filer/src/webpack-plugin');
|
||||||
|
@ -101,7 +101,7 @@ options object.
|
||||||
// webpack.config.js
|
// webpack.config.js
|
||||||
module.exports = {
|
module.exports = {
|
||||||
plugins: [
|
plugins: [
|
||||||
new filer.FilerWebpackPlugin({
|
new FilerWebpackPlugin({
|
||||||
// Options
|
// Options
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
|
|
|
@ -77,7 +77,9 @@
|
||||||
"files": [
|
"files": [
|
||||||
"src",
|
"src",
|
||||||
"lib",
|
"lib",
|
||||||
"dist"
|
"dist",
|
||||||
|
"shims",
|
||||||
|
"webpack"
|
||||||
],
|
],
|
||||||
"nyc": {
|
"nyc": {
|
||||||
"exclude": [
|
"exclude": [
|
||||||
|
|
Loading…
Reference in New Issue