Comments (10)
参照 vuejs/vue-loader#748 来看,https://github.com/hubcarl/easywebpack/blob/master/utils/loader.js#L43 这里的loaders配置不对,我试了手动添加
preLoaders: {
less: 'less-loader',
}
from egg-vue-webpack-boilerplate.
@jerryge 该问题需要看看
from egg-vue-webpack-boilerplate.
@hubcarl 嗯。谢谢。看了一下easywebpack插件的loader顺序都没有问题,网上提到最多的原因是这个。
from egg-vue-webpack-boilerplate.
@jerryge 原因是这个? 目前测试 用@import "test.less" 方式可以, 用 style 内联方式编译出错
from egg-vue-webpack-boilerplate.
@hubcarl 不确认定,我是谷歌了一下,别人提到的。
from egg-vue-webpack-boilerplate.
好的,我看一下
from egg-vue-webpack-boilerplate.
@jacksky007 按你的方式测试ok,已经修复less和sass style 的问题,已发布最新版本,更新最代码即可,增加了 less和sass style/import 的方式demo
from egg-vue-webpack-boilerplate.
@hubcarl 看了下,sass 需要
sass: 'sass-loader?indentedSyntax'
另外,把 https://github.com/shama/stylus-loader 也加上吧
from egg-vue-webpack-boilerplate.
好,loader这一块 我找个时间(8月份)结合webpack3重写一下,支持更灵活的用户定制
from egg-vue-webpack-boilerplate.
针对sass已加 indentedSyntax ,stylus 也加上了 @jacksky007
from egg-vue-webpack-boilerplate.
Related Issues (20)
- Could not find a declaration file for module 'lodash-id'. HOT 3
- 集成到自己的项目中 manifest.json 里面 vendor.js 路径没有 public HOT 1
- 最新版本的 egg-vue-webpack-boilerplate 热更新问题 HOT 2
- 大佬 为什么我使用svg-sprite-loader 不报错 svg也加载不出来 但其他项目中 同样的配置是可以的 HOT 1
- 报错 yarn 和npm 安装会报错, cnpm 正常 HOT 1
- 服务端渲染, 传递参数无法正常获取, sass样式无法正确展示 HOT 1
- Node.js14版本,报错!
- wsl2下热更新请求报跨域错误
- csr模式无法渲染在页面上 HOT 1
- egg-vue-webpack-boilerplate 工程里的/login页面渲染不出来
- windows 下 dev 模式 vue在浏览器端没有激活 HOT 4
- 服务端渲染返回后,客户端又进行了渲染
- 开启egg-security的CSP如何配置内联script/style的nonce HOT 1
- i18n
- i18n怎么集成到系统中,文档上的方法不好用?
- 运行时,Ignore Plugin 报错 HOT 1
- 启动时报错:nodejs.ValidationError: Invalid options object. Ignore Plugin has been initialized using an options object that does not match the API schema HOT 1
- 项目构建报错:PostCSS plugin postcss-discard-comments requires PostCSS 8. HOT 1
- master分支无法点击
- 如何解决接口跨域请求的问题呢
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from egg-vue-webpack-boilerplate.