Skip to content

Commit

Permalink
Adding Analyzer, Adding more Purge CSS Options
Browse files Browse the repository at this point in the history
  • Loading branch information
Belen Curcio authored and Belen Curcio committed Nov 6, 2020
1 parent 817fee6 commit c2a115c
Show file tree
Hide file tree
Showing 5 changed files with 1,105 additions and 35 deletions.
23 changes: 23 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
root = true

[*]
indent_style = space
indent_size = 2
tab_width = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false

[*.js]
quote_type = single

[{*.c,*.cc,*.h,*.hh,*.cpp,*.hpp,*.m,*.mm,*.mpp,*.js,*.java,*.go,*.rs,*.php,*.ng,*.jsx,*.ts,*.d,*.cs,*.swift}]
curly_bracket_next_line = false
spaces_around_operators = true
spaces_around_brackets = outside
# close enough to 1TB
indent_brace_style = K&R
8 changes: 6 additions & 2 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
module.exports = {
const bundleAnalyzer = require('@next/bundle-analyzer')({
enabled: !!process.env.BUNDLE_ANALYZE
})

module.exports = module.exports = bundleAnalyzer({
images: {
domains: ['cdn11.bigcommerce.com'],
},
Expand Down Expand Up @@ -50,4 +54,4 @@ module.exports = {
},
]
},
}
});
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start"
"start": "next start",
"analyze": "BUNDLE_ANALYZE=both yarn build",
"find:unused": "next-unused"
},
"prettier": {
"semi": false,
Expand Down Expand Up @@ -37,6 +39,7 @@
"tailwindcss": "^1.9"
},
"devDependencies": {
"@next/bundle-analyzer": "^10.0.1",
"@types/bunyan": "^1.8.6",
"@types/bunyan-prettystream": "^0.1.31",
"@types/classnames": "^2.2.10",
Expand All @@ -46,6 +49,7 @@
"@types/react": "^16.9.49",
"bunyan": "^1.8.14",
"bunyan-prettystream": "^0.1.3",
"next-unused": "^0.0.3",
"postcss-flexbugs-fixes": "^4.2.1",
"postcss-preset-env": "^6.7.0",
"prettier": "^2.1.2",
Expand Down
3 changes: 3 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
module.exports = {
future: {
purgeLayersByDefault: true,
},
purge: {
content: [
'./pages/**/*.{js,ts,jsx,tsx}',
Expand Down
Loading

0 comments on commit c2a115c

Please sign in to comment.