Comments (6)
十有八九是这个文件路径不存在
from mod.
图片,图片怎么用 require
来引入了,是不是一个 require.js 的项目?
from mod.
react引入图片就是这么引入的。。
from mod.
@T-baby 那就是你用的 AMD 方案吧。编译选型跟使用的加载方案强关联。暂时来看,没有一个工具能通吃。都是靠定制来搞定的,如果是 require.js 的,可以使用 AMD 相关 packager 插件。
from mod.
试下这个插件 https://github.com/fex-team/fis3-preprocessor-js-require-file
from mod.
@2betop 赞,居然有了这个插件。
from mod.
Related Issues (20)
- 在mod.js基础上, 实现本地 localStorage 缓存
- useSameNameRequire=true时会提前加载require.async声明的模块样式 HOT 5
- require('template.js')的时候报错,atrTemplate无法模块化 HOT 9
- mod.js 出现某一个id没有找到的情况 HOT 2
- fis,modjs 模块化方案在安卓4.0--4.3浏览器下报错 HOT 1
- Cannot find module `src/assets/js/index` HOT 2
- test case 都跑不过,确定是最新版? HOT 2
- require.async 加载动态变量模块 HOT 1
- 引入regenerator-runtime后提示regeneratorRuntime undefined
- modjs有托管在npm上吗
- onload && onload.apply 类似的检验不严谨导致使用不便的问题 HOT 1
- [ModJS] Cannot find module `buffer`
- 用了modjs后还能用relative的相对路径模式吗?我想把前端代码打包到app里边 HOT 1
- 表示看不懂test里面的例子,看了好几天 HOT 9
- [ModJS] Cannot find module `node_modules/react-router/lib/index`
- id.replace is not a function HOT 1
- mod.js加载页面依赖文件报错 HOT 3
- modjs经过fis3包裹后,里面的js代码不执行!? HOT 2
- mod.js支持ie8浏览器的模块化加载么? HOT 1
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 mod.