Giter Site home page Giter Site logo

Comments (11)

sorrycc avatar sorrycc commented on June 29, 2024

我找时间重现下。

from roadhog.

sorrycc avatar sorrycc commented on June 29, 2024

有空等这周的 0.5 发布后再测下,我在用例里加了没有问题。

from roadhog.

lnlfps avatar lnlfps commented on June 29, 2024

我也遇到了这个问题,有临时的解决方法吗?

from roadhog.

lnlfps avatar lnlfps commented on June 29, 2024

找到问题了,在config目录下的webpack.config.dev.js这行代码有问题
{ test: /\.less$/, include: paths.appNodeModules, loader:style!${cssLoaders.nodeModules}!less?{"modifyVars":${theme}}, },
修复后是:
{ test: /\.less$/, include: paths.appNodeModules, loader:style!${cssLoaders.nodeModules.join('!')}!less?{"modifyVars":${theme}}, },

缺少join('!')字符串连接符,导致loader的定义格式错误。
webpack.config.prod.js 这个里面好像也有类似的问题,请核查下。

from roadhog.

sorrycc avatar sorrycc commented on June 29, 2024

升级 roadhog 到 0.5,然后按这个配置试试,https://github.com/sorrycc/roadhog/blob/master/test/fixtures/build/pxtorem/.roadhogrc.js

from roadhog.

sorrycc avatar sorrycc commented on June 29, 2024

确实是代码层不对,感谢定位问题,我稍后发个 bugfix 版本。

from roadhog.

sorrycc avatar sorrycc commented on June 29, 2024

@lnlfps 已在 0.5 中修复。

from roadhog.

lnlfps avatar lnlfps commented on June 29, 2024

@sorrycc 0.5的npm包里好像还是有点问题,src目录里的webpack.config.dev.js是对的,但lib目录下的webpack.config.dev.js还是和之前的代码一样,没有加join('!')。

from roadhog.

sorrycc avatar sorrycc commented on June 29, 2024

@lnlfps 是 Makefile 脚本的问题,publish 前没有 build 。我看过 0.5.1 的发布包是好的,你试试看。

from roadhog.

lnlfps avatar lnlfps commented on June 29, 2024

@sorrycc 刚试了,0.5.1已经好了,谢谢!

from roadhog.

jozhi avatar jozhi commented on June 29, 2024

@sorrycc 目前使用的 0.5.2 依然有这个问题,按照以上说明添加了.roadhogrc.js 再次测试依然没有解决。

from roadhog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.