安装lib-flexible报错

 saveError ENOENT: no such file or directory, open 'E:\Github\SDIO\package.json'

需要在项目下安装,在有package.json这级目录安装

 ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.

ajv没有导入

 

 

配置

 

需要敲的部分:(自己看着复制吧)

const px2remLoader = {
loader: 'px2rem-loader',
options:{
remUnit:75
}
}
const postcssLoader = {
loader: 'postcss-loader',
options: {
sourceMap: options.sourceMap
}
}

// generate loader string to be used with extract text plugin
function generateLoaders (loader, loaderOptions) {
// const loaders = options.usePostCSS ? [cssLoader, px2remLoader] : [cssLoader]
const loaders = [cssLoader, px2remLoader]
if (loader) {
loaders.push({
loader: loader + '-loader',
options: Object.assign({}, loaderOptions, {
sourceMap: options.sourceMap
})
})
}

 

之后重启就好 npm run dev

 

posted @ 2018-05-24 22:31  可以用标点做名字吗  Views(765)  Comments(0Edit  收藏  举报