Giter Site home page Giter Site logo

Comments (5)

Blubiubiu avatar Blubiubiu commented on July 17, 2024

感谢您的使用,您的问题已于v1.0.8版本得到修复。如果您在后续的使用过程中仍遇到问题,请您继续提出issues,我会第一时间为您解决!

from webpack4_mpa_demo.

kailong321200875 avatar kailong321200875 commented on July 17, 2024

1.内联图片出不来了。
<div style="width: 300px;height: 300px;background-image: url(../../assets/images/time.jpg);"></div>
2.icons引入失败,没办法使用字体图标

from webpack4_mpa_demo.

kailong321200875 avatar kailong321200875 commented on July 17, 2024

感谢您的使用,您的问题已于v1.0.8版本得到修复。如果您在后续的使用过程中仍遇到问题,请您继续提出issues,我会第一时间为您解决!

我要重新提一个issues吗

from webpack4_mpa_demo.

Blubiubiu avatar Blubiubiu commented on July 17, 2024

第一个Q:这个问题确实如此,但我并不推荐这样使用,所以并不打算对此给出修改。对于css还是建议您写在css文件中,如果一定要这样使用,您可以在webpack.rules.conf.js中修改html-loader?interpolate!./your-file.html,并且在html中这样使用<div style="background-image: url('${require(../../content/images/logo.png)}')">,(具体可以查看html-loader文档)这或许更加麻烦了不是吗?
第二个Q:无法引用字体图标是因为没有导入相应的loader,这个工具只是为了方便您搭建多页面应用,至于您需要的插件可能还需要自己添加
{
test: /.(woff2?|eot|ttf|otf)(?.*)?$/,
loader: 'url-loader'
}

from webpack4_mpa_demo.

kailong321200875 avatar kailong321200875 commented on July 17, 2024

第一个Q:这个问题确实如此,但我并不推荐这样使用,所以并不打算对此给出修改。对于css还是建议您写在css文件中,如果一定要这样使用,您可以在webpack.rules.conf.js中修改html-loader?interpolate!./your-file.html,并且在html中这样使用

,(具体可以查看html-loader文档)这或许更加麻烦了不是吗?
第二个Q:无法引用字体图标是因为没有导入相应的loader,这个工具只是为了方便您搭建多页面应用,至于您需要的插件可能还需要自己添加
{
test: /.(woff2?|eot|ttf|otf)(?.*)?$/,
loader: 'url-loader'
}

好。那我有问题在请教你

from webpack4_mpa_demo.

Related Issues (14)

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.