Skip to content

Commit

Permalink
Separate webpack configs for dev and prod
Browse files Browse the repository at this point in the history
Also, move babel config back to .babelrc (from package.json)
  • Loading branch information
tconkling committed May 28, 2018
1 parent 2bb7986 commit baab8f4
Show file tree
Hide file tree
Showing 7 changed files with 308 additions and 22 deletions.
16 changes: 16 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"presets": [
"@babel/env",
"@babel/typescript"
],
"env": {
"production": {
"presets": ["minify"]
}
},
"plugins": [
"@babel/proposal-class-properties",
"@babel/proposal-object-rest-spread",
"@babel/plugin-syntax-dynamic-import"
]
}
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

A Javascript port of the Eterna game

## Setup (on a Mac)
## Setup

The project uses NPM for dependency management, webpack for packaging, and babel to polyfill ES2015 language features into ES5 and earlier.

Expand All @@ -11,7 +11,8 @@ The project uses NPM for dependency management, webpack for packaging, and babel
- (or just use `homebrew` to install node)
* `$ npm install` in root directory

## Building (on a Mac)
## Building

`$ npm run webpack -- --mode=development`
`$ npm run build-dev` or
`$ npm run build-prod`

261 changes: 261 additions & 0 deletions package-lock.json

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

Loading

0 comments on commit baab8f4

Please sign in to comment.