Comparing version 0.2.0 to 0.2.1
@@ -6,3 +6,3 @@ { | ||
"name": "morphling", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "A collection of VueJs filters.", | ||
@@ -9,0 +9,0 @@ "main": "index.js", |
@@ -10,6 +10,7 @@ # Mophling | ||
- [Installation](#Installation) | ||
- [Usage](#Usage) (New updates as of July 29, 2017 PHT) | ||
- [Usage](#Usage) | ||
- [Filters](#Filters) | ||
- [Directives](#Directives) | ||
- [Updates](#Updates) | ||
- [Updates](#Updates) (New updates as of July 29, 2017 PHT) | ||
- [Debug](#Debug) | ||
- [Contributing](https://github.com/jofftiquez/morphling/blob/master/CONTRIBUTING.md) | ||
@@ -421,2 +422,38 @@ - [License](https://github.com/jofftiquez/morphling/blob/master/LICENSE) | ||
## Debug | ||
**ERROR in build.js from UglifyJs** | ||
There is a known error when building a **vue cli x webpack** project that is using `morphling`. | ||
> ERROR in build.js from UglifyJs | ||
> Unexpected token: punc (() [../morphling/index.js:5,4][build.js:15630,10] | ||
**Fix:** | ||
1. Add `es2015` and `stage-2` presets to the `.babelrc` | ||
2. Include `morphling` to the `babel-loader` in `build/webpack.base.conf.js` | ||
*build/webpack.base.conf.js* | ||
```javascript | ||
... | ||
module: { | ||
rules: [ | ||
... | ||
{ | ||
test: /\.js$/, | ||
loader: 'babel-loader', | ||
include: [resolve('src'), resolve('test'), resolve('node_modules/morphling')] | ||
} | ||
... | ||
] | ||
} | ||
... | ||
``` | ||
Helpful links : | ||
- [Stackoverflow](https://stackoverflow.com/a/43893311/2889614) | ||
- [GitHub](https://github.com/joeeames/WebpackFundamentalsCourse/issues/3) | ||
*"When my time comes, | ||
@@ -423,0 +460,0 @@ Forget the wrong that I've done, |
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
49536
478