Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: refactor #299

Merged
merged 5 commits into from
Oct 10, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
10 changes: 5 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
cache:
directories:
- node_modules

language: node_js

node_js:
- "node"
- 6
- 4

after_success:
- npm i coveralls
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js

notifications:
email: false
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
[![node][node]][node-url]
[![deps][deps]][deps-url]
[![tests][tests]][tests-url]
[![coverage][cover]][cover-url]
[![chat][chat]][chat-url]

<!-- [![coverage][cover]][cover-url] -->

<div align="center">
<img width="180" height="180" hspace="10"
alt="PostCSS Logo"
Expand Down
6 changes: 3 additions & 3 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ const SyntaxError = require('./Error')
* @return {cb} cb Result
*/
module.exports = function loader (css, map) {
const cb = this.async()
const file = this.resourcePath

const options = loaderUtils.getOptions(this) || {}

validateOptions(require('./options.json'), options, 'PostCSS Loader')

const cb = this.async()
const file = this.resourcePath

const sourceMap = options.sourceMap

Promise.resolve().then(() => {
Expand Down
Loading