Skip to content

Commit

Permalink
upgrade to webpack 4
Browse files Browse the repository at this point in the history
Squashed commits:
[6c232b9] More WebPack 4 wip
[c4369c3] Attempt to remove lodash
[ce53aad] Packages cleanup
[155124d] Better enqueue for scripts
[7b2cd68] Upgraded to webpack 4 + assets performance
  • Loading branch information
Vlad Olaru authored and razwan committed Oct 14, 2019
1 parent 24c1c77 commit 6e8d89b
Show file tree
Hide file tree
Showing 37 changed files with 18,937 additions and 35,290 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"plugins": [ "lodash" ],
"presets": [ "@wordpress/default" ]
"presets": [ ["@wordpress/default", { "modules": true } ] ]
}
10 changes: 10 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
useTabs: true
tabWidth: 4
printWidth: 80
singleQuote: true
trailingComma: es5
bracketSpacing: true
parenSpacing: true
jsxBracketSameLine: false
semi: true
arrowParens: always
16 changes: 16 additions & 0 deletions bundlesize.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"files": [
{
"path": "./dist/js/*.js",
"maxSize": "300 kB"
},
{
"path": "./dist/js/*frontend*.js",
"maxSize": "130 kB"
},
{
"path": "./dist/css/*.css",
"maxSize": "100kB"
}
]
}
1 change: 1 addition & 0 deletions dist/css/blocks.editor-rtl.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6e8d89b

Please sign in to comment.