Skip to content

Commit

Permalink
Use 'defaults' browserslist environment
Browse files Browse the repository at this point in the history
  • Loading branch information
mvsde committed Mar 18, 2019
1 parent 66fce6a commit 0f6337f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 13 deletions.
1 change: 0 additions & 1 deletion lib/commands/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ module.exports = function (options) {
process.env.NODE_ENV = 'production'
process.env.PANGOLIN_ENV = options.dev ? 'build:dev' : 'build'
process.env.PANGOLIN_BUILD = 'legacy'
process.env.BROWSERSLIST_ENV = 'legacy'

const context = process.cwd()
store.setup(context)
Expand Down
1 change: 0 additions & 1 deletion lib/commands/dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ const WebpackDevServer = require('webpack-dev-server')
module.exports = async function () {
process.env.NODE_ENV = 'development'
process.env.PANGOLIN_ENV = 'dev'
process.env.BROWSERSLIST_ENV = 'legacy'

const context = process.cwd()
store.setup(context)
Expand Down
18 changes: 9 additions & 9 deletions test/project/.browserslistrc
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Supported browsers
# https://github.com/ai/browserslist
# https://github.com/browserslist/browserslist

[modern]
Chrome >= 58
Edge >= 15
Firefox >= 53
iOS >= 10.1

[legacy]
> 0.25%
> 0.2%
last 2 versions
not dead

[modern]
Chrome >= 58 and > 0.2%
Edge >= 15 and > 0.2%
Firefox >= 53 and > 0.2%
iOS >= 10.1 and > 0.2%
5 changes: 3 additions & 2 deletions ui/.browserslistrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Supported browsers
# https://github.com/ai/browserslist
# https://github.com/browserslist/browserslist

> 0.25%
> 0.2%
not dead

0 comments on commit 0f6337f

Please sign in to comment.