Skip to content

Commit

Permalink
fix download link from CDN, changes in package.json and Readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Kallenju committed Nov 25, 2022
1 parent 5e3497d commit 15efe89
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 18 deletions.
8 changes: 0 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,6 @@ import SimpowerValidation from 'simpower-validation';
const validate = new SimpowerValidation('#form');
```

or using a CommonJS build tool

```js
const SimpowerValidation = reqiure('simpower-validation');

const validate = new SimpowerValidation('#form');
```

If you don't use module bundlers, you can import SimpowerValidation via a browser:

```js
Expand Down
13 changes: 3 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
{
"name": "simpower-validation",
"version": "1.0.0",
"version": "1.0.1",
"description": "Modern, simple but powerful form validation library written in pure JavaScript, with no dependencies.",
"main": "./simpower-validation.production.min.js",
"main": "./simpower-validation.esm.js",
"module": "./simpower-validation.esm.js",
"exports": {
".": {
"import": "./simpower-validation.esm.js",
"require": "./simpower-validation.production.min.js"
"import": "./simpower-validation.esm.js"
}
},
"browserslist": {
Expand Down Expand Up @@ -43,12 +42,6 @@
"url": "https://github.com/Kallenju/simpower-validation/issues"
},
"homepage": "https://github.com/Kallenju/simpower-validation#readme",
"funding": [
{
"type": "patreon",
"url": "https://www.patreon.com/"
}
],
"devDependencies": {
"@babel/core": "^7.20.2",
"@babel/eslint-parser": "^7.19.1",
Expand Down
5 changes: 5 additions & 0 deletions webpack.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ const config = {

output: {
filename: 'simpower-validation.production.min.js',
library: {
name: 'SimpowerValidation',
type: 'window',
export: 'default',
},
path: path.resolve(__dirname, './dist'),
clean: true,
},
Expand Down

0 comments on commit 15efe89

Please sign in to comment.