diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..1f77c906 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,11 @@ +# https://editorconfig.org + +root = true +[*] +charset = utf-8 +indent_style = space +indent_size = 2 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true +quote_type = single diff --git a/package.json b/package.json index d4d18a8b..c68f7759 100644 --- a/package.json +++ b/package.json @@ -5,16 +5,15 @@ "production": "cross-env NODE_ENV=production postcss public/tailwind.css -o public/build/tailwind.css", "start": "npm run serve" }, - "dependencies": { - "autoprefixer": "^9.5.1", - "tailwindcss": "^1.0" - }, + "dependencies": {}, "devDependencies": { "@fullhuman/postcss-purgecss": "^1.2.0", - "concurrently": "^4.1.0", + "autoprefixer": "^9.8.5", + "concurrently": "^5.2.0", "cross-env": "^5.2.0", "cssnano": "^4.1.10", "live-server": "^1.2.1", - "postcss-cli": "^6.1.2" + "postcss-cli": "^7.1.1", + "tailwindcss": "^1.5.2" } } diff --git a/postcss.config.js b/postcss.config.js index e4fec190..05ddeabd 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -1,14 +1,9 @@ -const purgecss = require('@fullhuman/postcss-purgecss')({ - content: ['./public/**/*.html'], - defaultExtractor: content => content.match(/[A-Za-z0-9-_:/]+/g) || [] -}) - module.exports = { plugins: [ require('tailwindcss'), require('autoprefixer'), - ...process.env.NODE_ENV === 'production' + ...(process.env.NODE_ENV === 'production' ? [purgecss, require('cssnano')] - : [] - ] -} + : []), + ], +}; diff --git a/tailwind.config.js b/tailwind.config.js index af829e20..8412fc2a 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,7 +1,8 @@ module.exports = { + purge: ["./public/**/*.html"], theme: { extend: {}, }, variants: {}, plugins: [], -} +};