Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/webpack/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Webpack VuePress:如何导入css框架(css)_Webpack_Vuepress - Fatal编程技术网

Webpack VuePress:如何导入css框架(css)

Webpack VuePress:如何导入css框架(css),webpack,vuepress,Webpack,Vuepress,我正在尝试与一个项目一起使用,我不确定如何在不直接引用mode_模块中的文件的情况下正确包含basscss文件,并且希望避免使用第三方CDN 到目前为止,我已经用Thread和一些postcss插件安装了basscss,并制作了我自己的主题: .vuepress ├── node_modules ├── package.json └── theme    ├── Layout.vue    └── styles       └── theme.styl 在myconfig.js中: m

我正在尝试与一个项目一起使用,我不确定如何在不直接引用mode_模块中的文件的情况下正确包含basscss文件,并且希望避免使用第三方CDN

到目前为止,我已经用Thread和一些postcss插件安装了basscss,并制作了我自己的主题:

.vuepress
├── node_modules
├── package.json
└── theme
    ├── Layout.vue
    └── styles
        └── theme.styl
在my
config.js
中:

module.exports = {
  postcss: {
    plugins: [
      require('postcss-import')
    ]
  }
  ...
}
Layout.vue

theme.style
中,
@import“basscss.css”
导致错误:

模块生成失败(从 /Users/user/.config/warn/global/node_modules/postss loader/lib/index.js): 错误:在中找不到“basscss.css”[ /用户/user/code/project\u title/.vuepress/theme/styles]


使用标准的
vue cli
webpack模板很容易,但我正在努力使用VuePress,因为我不太熟悉webpack在这种情况下的功能。

您使用的是什么版本的VuePress和basscss?