refactor: use postcss-import-resolver

This commit is contained in:
Clark Du 2018-01-17 17:54:48 +08:00
parent 962a4e20d6
commit c796d1d231
No known key found for this signature in database
GPG Key ID: D0E5986AF78B86D9
3 changed files with 5 additions and 5 deletions

View File

@ -2,7 +2,7 @@ const { existsSync } = require('fs')
const { resolve, join } = require('path')
const { cloneDeep } = require('lodash')
const { isPureObject } = require('../../common/utils')
const createResolver = require('postcss-import-webpack-resolver')
const createResolver = require('postcss-import-resolver')
module.exports = function postcssConfig() {
let config = cloneDeep(this.options.build.postcss)

View File

@ -141,7 +141,7 @@
"jsdom": "^11.5.1",
"json-loader": "^0.5.7",
"nyc": "^11.4.1",
"postcss-import-webpack-resolver": "^1.0.1",
"postcss-import-resolver": "^1.1.0",
"puppeteer": "^1.0.0",
"request": "^2.83.0",
"request-promise-native": "^1.0.5",

View File

@ -5779,9 +5779,9 @@ postcss-image-set-polyfill@^0.3.5:
postcss "^6.0.1"
postcss-media-query-parser "^0.2.3"
postcss-import-webpack-resolver@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/postcss-import-webpack-resolver/-/postcss-import-webpack-resolver-1.0.1.tgz#4be0e9400b7609313e11258a17c3c4d7db186ac9"
postcss-import-resolver@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/postcss-import-resolver/-/postcss-import-resolver-1.1.0.tgz#08a1a9811da625d28317abc31565a8408ff28cd2"
dependencies:
enhanced-resolve "^3.4.1"