Skip to content

Commit

Permalink
fix: support saber 0.3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Apr 5, 2019
1 parent 2bf0031 commit 45987f1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ exports.apply = api => {
if (api.mode !== 'production') return

api.hooks.beforeRun.tap(ID, () => {
api.log.debug('[critical] Setting `css.extract` to true in Saber config')
api.config.css.extract = true
api.log.debug(
'[critical] Setting `build.extractCSS` to true in Saber config'
)
api.config.build.extractCSS = true
})

api.hooks.afterGenerate.tapPromise(ID, async () => {
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,12 @@
"jest": "^24.7.1",
"lint-staged": "^7.2.0",
"prettier": "^1.15.2",
"saber": "^0.3.6",
"saber": "^0.3.7",
"xo": "^0.23.0"
},
"peerDependencies": {
"saber": "^0.3.7"
},
"xo": {
"extends": [
"rem",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8359,10 +8359,10 @@ saber-utils@^0.0.4:
resolved "https://registry.npmjs.org/saber-utils/-/saber-utils-0.0.4.tgz#15b5e3458445a2ef097cc2505dc3bbcbbdf32c9a"
integrity sha512-U3srXEi7pSj15TgJn60qkY5wsgLoTFT/8oW0iJdZUe7DAybZRZrBK9I0WLWAz0DVx0FdigBd0zQjNmvq5KfGiQ==

saber@^0.3.6:
version "0.3.6"
resolved "https://registry.npmjs.org/saber/-/saber-0.3.6.tgz#a276f4aa8d10da3606392a9767f075240d3ac090"
integrity sha512-yZDedgC9h24kFceHJyvNoEJX2a4y+5Qw1FW3PeVShfWOf9c40LkPiEBYlR4U/qQo1ziG8CWk9WOQAxuXliH5mQ==
saber@^0.3.7:
version "0.3.7"
resolved "https://registry.npmjs.org/saber/-/saber-0.3.7.tgz#7267f6d07b0ef7e4f1c921d196221ced283e61a1"
integrity sha512-pLfD0aKcGr0a2DgHqCoJu6/6NjykdKR1PRW3D/h5tD7mQ683+umQC3a04mDnXYgaFLRjzvM7JGqpNWEe5Fe1iA==
dependencies:
"@babel/core" "^7.2.2"
"@babel/plugin-proposal-object-rest-spread" "^7.2.0"
Expand Down

0 comments on commit 45987f1

Please sign in to comment.