Comments (5)
感谢您的使用,您的问题已于v1.0.8版本得到修复。如果您在后续的使用过程中仍遇到问题,请您继续提出issues,我会第一时间为您解决!
from webpack4_mpa_demo.
1.内联图片出不来了。
<div style="width: 300px;height: 300px;background-image: url(../../assets/images/time.jpg);"></div>
2.icons引入失败,没办法使用字体图标
from webpack4_mpa_demo.
感谢您的使用,您的问题已于v1.0.8版本得到修复。如果您在后续的使用过程中仍遇到问题,请您继续提出issues,我会第一时间为您解决!
我要重新提一个issues吗
from webpack4_mpa_demo.
第一个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.
第一个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)
- 启动报错 HOT 2
- 打包之后的问题 HOT 1
- 几个问题 HOT 1
- devtool HOT 1
- 有没有计划升级一下 HOT 1
- 无法支持vue的单页面 HOT 1
- 资源配置的bug和不合理之处 HOT 1
- 修改html文件,页面不会刷新。 HOT 1
- 修改html文件,页面不会刷新。 HOT 5
- 不兼容ie8 HOT 1
- Cannot apply update. Need to do a full reload! HOT 2
- 作为小白的疑惑。 HOT 3
- 打包后页面跳转路径错误怎么解决呢 HOT 2
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 webpack4_mpa_demo.