Comments (3)
我这边的产出是这样的。你确定是最新版本?
<!DOCTYPE html>
<html>
<head>
<title>AMD</title>
</head>
<body>
<p> Hello, World. </p>
<button id="btn">load async js</button>
<script type="text/javascript" src="/static/require.js"></script>
<script type="text/javascript">/*resourcemap*/
require.config({paths:{
"comp/cal/cal": "/static/comp/cal/cal",
"comp/1-0/1-0": "/static/comp/1-0/1-0",
"comp/2-0/2-0": "/static/comp/2-0/2-0"
}});
require(['comp/1-0/1-0'], function() {
var btn = document.getElementById('btn');
var handler = function() {
require(['comp/2-0/2-0']);
};
if (btn.addEventListener) {
btn.addEventListener('click', handler);
} else {
btn.attachEvent('click', handler);
}
});
</script>
</body>
</html>
from fis3-postpackager-loader.
一样产出不了
from fis3-postpackager-loader.
升级了吗?
from fis3-postpackager-loader.
Related Issues (20)
- 解决了
- [improvement]有没有考虑继续完善一下这个插件,更加智能方便一点? HOT 1
- 为什么升级插件需要全局安装之后libsass的错误又出来了,一直有这个错误? HOT 2
- css加载顺序问题 HOT 1
- <!--RESOURCEMAP_PLACEHOLDER-->定位无效
- Bug
- 混用[es6]import和require会产生两个_aio.js文件 HOT 17
- loader配合domain产生bug
- ignore清单失效 HOT 1
- 对依赖的js文件有顺序要求的,应当如何配置打包?
- css文件合并后的type依然是'js'
- 打包后,个别文件还是没有合并到一起 HOT 4
- 合并打包的js资源,能不能加个属性crossorigin的配置 HOT 1
- 请问aioPkg字段的生成逻辑是怎样的
- 打包忽略文件对css无效 HOT 1
- 与packTo合并js的功能协作问题。 HOT 3
- resourcemapWhitespace配置项缺失 HOT 2
- 设置fis.hook('amd') 依然生成 require.resourceMap()而不是 require.config()?
- 能否提供支持抽离公共js代码功能 HOT 1
- css 没有合并在一起 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 fis3-postpackager-loader.