-
-
Notifications
You must be signed in to change notification settings - Fork 120
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
我本地 引用你这个uiw 说找不到模块是什么原因? #56
Comments
@w3cui 你尝试清空 |
./node_modules/_uiw@1.7.0@uiw/lib/list/style/index.less 好像能读取到了,但是报这个@符合的错! 我webpack里面@符号是定义的项目根目录是不是有影响? |
我的webpack 里面配置了:
是不是有影响? |
@w3cui 你要在webpack中配置 less 解析 {
test: /\.(css|less)$/,
use: [
require.resolve('style-loader'),
{
loader: require.resolve('css-loader'),
options: {
modules: true,
localIdentName: '[name]-[hash:base64:5]',
importLoaders: 1,
},
},
{
loader: require.resolve('postcss-loader'),
options: {
ident: 'postcss', // https://webpack.js.org/guides/migrating/#complex-options
plugins: () => [
require('postcss-flexbugs-fixes'),
autoprefixer({
browsers: [
'>1%',
'last 4 versions',
'Firefox ESR',
],
flexbox: 'no-2009',
}),
px2rem({
rootValue: 100,
selectorBlackList: ['html']
})
],
},
},
require.resolve('less-loader'),
]
} |
都能解析 这是我的配置需要怎么去修改?
|
@w3cui sass 跟 less 冲突了?这个应该不可能的事情 |
我把sass清除了一样的还是报错!
|
@w3cui 你的loader这样配置配置试一试? {
test: /\.(css|less)$/,
use:[ 'style-loader','css-loader','less-loader'],
}, |
现在成功了!! 谢谢。。。 |
@w3cui 你的配置方法好像是 webpack1 or 2 遗留下的配置方法,可能是新的 |
嗯! 好的 |
cnpm install uiw --save
The text was updated successfully, but these errors were encountered: