Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
chore: update module
  • Loading branch information
ricardogobbosouza committed May 4, 2020
commit 7ae5171938c60c5276973321230192962c068be6
5 changes: 5 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Common
node_modules
dist
.nuxt
coverage
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ node_modules
*.iml
.idea
*.log*
.nuxt*
.nuxt
.vscode
.DS_STORE
.DS_Store
coverage
dist
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ export default {

:warning: If you are using Nuxt **< v2.9** you have to install the module as a `dependency` (No `--dev` or `--save-dev` flags) and use `modules` section in `nuxt.config.js` instead of `buildModules`.


## Options

### Defaults
Expand Down Expand Up @@ -105,7 +104,6 @@ export default {

### Override a default value


```js
//nuxt.config.js
export default {
Expand All @@ -121,7 +119,6 @@ export default {

### Append a value to the defaults


```js
//nuxt.config.js
export default {
Expand All @@ -137,7 +134,6 @@ export default {

### Override a default value


```js
//nuxt.config.js
export default {
Expand All @@ -152,6 +148,7 @@ export default {
```

### Use custom extractors

Only one extractor can be applied to each file extention.
If you want to apply a custom extractor to the extensions that the default extractor already covers, you have to override the default extractor. This is only possible with the functional notation.

Expand Down Expand Up @@ -218,4 +215,3 @@ Copyright (c) Alexander Lichter

[license-src]: https://img.shields.io/npm/l/nuxt-purgecss.svg
[license-href]: https://npmjs.com/package/nuxt-purgecss

52 changes: 13 additions & 39 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,52 +2,30 @@
"name": "nuxt-purgecss",
"version": "1.0.0",
"description": "Drop superfluous CSS! A neat PurgeCSS wrapper for Nuxt.js",
"keywords": [
"nuxtjs",
"nuxt",
"nuxt-module",
"purgecss",
"css"
],
"repository": "Developmint/nuxt-purgecss",
"license": "MIT",
"contributors": [
{
"name": "Alexander Lichter <npm@lichter.io>"
}
],
"main": "lib/module.js",
"repository": {
"mode": "git",
"url": "git+https://github.com/Developmint/nuxt-purgecss"
},
"bugs": {
"url": "https://github.com/Developmint/nuxt-purgecss/issues"
},
"publishConfig": {
"access": "public"
},
"files": [
"lib"
],
"scripts": {
"dev": "nuxt --config-file test/fixture/configs/postcss/default.js",
"lint": "eslint --ext .js,.vue .",
"release": "yarn test && standard-version && git push --follow-tags && npm publish",
"test": "yarn lint && jest"
},
"files": [
"lib"
],
"keywords": [
"nuxtjs",
"nuxt",
"nuxt-module",
"purgecss",
"css"
],
"engines": {
"node": ">=10.0.0",
"npm": ">=5.0.0"
},
"jest": {
"testEnvironment": "node",
"collectCoverage": true,
"coveragePathIgnorePatterns": [
"/node_modules/",
"/test/fixture"
],
"forceExit": true
},
"dependencies": {
"@fullhuman/postcss-purgecss": "^2.0.5",
"consola": "^1.4.5",
Expand All @@ -63,14 +41,10 @@
"eslint": "latest",
"husky": "latest",
"jest": "latest",
"jsdom": "latest",
"nuxt-edge": "latest",
"standard-version": "latest"
},
"husky": {
"hooks": {
"pre-commit": "yarn run lint",
"commit-msg": "yarn run commitlint"
}
"publishConfig": {
"access": "public"
}
}
Loading