lococo--0 / fis3-preprocessor-ng2-inline Goto Github PK
View Code? Open in Web Editor NEW把ng2中htmlUrl和styleUrls的引用内容内联进js文件中
把ng2中htmlUrl和styleUrls的引用内容内联进js文件中
再跑一遍命令吗?
fis3有个插件是用来进行相对路径的打包:fis3-hook-relative
但使用fis3-preprocessor-ng2-inline来进行__inline样式,在开发时,路径是正确的,但进行相对路径打包后,Angularjs2组件的styleUrls里面的样式引用图片的路径解析就有误了,而在index.html里通过link标签引入样式的图片路径就解析正确。
这里是demo项目public-static,可分别运行 npm start
和 npm run build
试试
寻求讨论解决方案~~
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.