Comments (7)
这样写的就是异步的
require.async('xxx', function () {});
from fis3-base.
回复好快,谢谢解答。但是怎么在打包的时候排除掉异步加载的 component 啊。
.match('/components/**.js', { packTo: '/pkg/components.js' })
现在的打包方式,好像会把所有组件全部都打包成 components.js
from fis3-base.
components 里的不打包,或者改成白名单,只打包指定资源
from fis3-base.
现在好像没办法 异步资源不打包!!!
from fis3-base.
fis的打包和webpack的打包不一样!!!
from fis3-base.
FIS可能要一个大的版本更新,才能跟上现在前端发展的脚步吧。不过一些传统类型的网站,fis还是非常顺手的。我就同时在用fis和webpack。
from fis3-base.
webpack那个 common-chunk 还没fis这种手动打包好用吧。。。
from fis3-base.
Related Issues (17)
- html 没有压缩吗 HOT 5
- node-sass插件提示The `libsass` binding was not found in 。。。 HOT 11
- 是否可以将components改为node_modules支持? HOT 5
- 打包后CDN的问题 HOT 2
- fis3 release -d xx怎么会报说哪插件不存在的? HOT 1
- scss、js 文件打包编译后浏览器调试时怎么看对应代码在未打包源码的位置 HOT 1
- 关于release之后的路径问题 HOT 4
- 目录下的html组件能不能传参数?
- 大佬,请问下怎么结合babel-transform-runtime使用es6语法啊 HOT 3
- 新插件
- fis3 release 后报错 HOT 1
- autoprefixer报错,无法release HOT 3
- 写的es6的代码,依赖的babel-runtime怎么打包? HOT 5
- fis-parser-sass已经停止更新 HOT 15
- 执行-wL命令时报错,其他fis3项目没有这个问题 HOT 5
- babel 插件需要更新 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 fis3-base.