Skip to content

Commit 7ab63fc

Browse files
author
WordPress.org
committed
add gitignore and correct webpack
1 parent c805cd4 commit 7ab63fc

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

.gitignore

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Standard gitignore file
2+
3+
# Node.js
4+
node_modules/
5+
npm-debug.log
6+
yarn-error.log
7+
8+
# Logs
9+
logs/
10+
*.log
11+
*.log.*
12+
13+
# Dependency directories
14+
jspm_packages/
15+
16+
# Optional npm cache directory
17+
.npm
18+
19+
# Optional eslint cache
20+
.eslintcache
21+
22+
# Optional REPL history
23+
.node_repl_history
24+
25+
# Environment variables
26+
.env
27+
.env.test
28+
.env.production
29+
30+
# MacOS
31+
.DS_Store
32+
33+
# IDEs and editors
34+
.idea/
35+
.vscode/
36+
*.suo
37+
*.ntvs*
38+
*.njsproj
39+
*.sln
40+
41+
# Assets build directory
42+
assets/build/**/*.css
43+
assets/build/**/*.map
44+
assets/build/**/*.js

webpack.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ const commonConfig = {
3636
exclude: /node_modules/,
3737
use: {
3838
loader: 'babel-loader',
39+
options: {
40+
presets: ['@babel/preset-react']
41+
}
3942
},
4043
},
4144
{

0 commit comments

Comments
 (0)