Comments (5)
html/*html --> html/*.html
这样试试?
from fis3.
哈哈,多谢@jincdream ,已经晕了低级错误啊,不过 @xiangshouding 还是没成功呢:
fis.match('{css/*.css,less/g.less,js/*.js,html/*.html,img/**}', {
deploy: fis.plugin('local-deliver', {
to: './publish'
})
})
fis
.media('test')
.match('{css/*.css,html/*.html}', {
deploy: fis.plugin('http-push', {
receiver: 'somedomain.com/receiver/receiver.php',
to: '/path/to/project'
})
})
如上期待css less js html 进入 publish,期待 css html 进入 http-push 上传
实际上 fis3 release test 下面的除了 css html 的文件还是被上传了。
好晕!
fis3 inspect test 的值为:
~ /img/225.mp3
-- useHash false `*` (0th)
-- deploy [plugin `http-push`] `{css/*.css,less/g.less,js/*.js,html/*.html,img/**}` (9th)
~ /img/225.ogg
-- useHash false `*` (0th)
-- deploy [plugin `http-push`] `{css/*.css,less/g.less,js/*.js,html/*.html,img/**}` (9th)
~ /img/225.wav
-- useHash false `*` (0th)
-- deploy [plugin `http-push`] `{css/*.css,less/g.less,js/*.js,html/*.html,img/**}` (9th)
这里我认为 225.mp3 225.ogg 225.wav 是应该只有plugin
local-deliver不应该匹配到 `plugin `http-push
的呀
fis
.media('test')
.match('{css/*.css,less/g.less,js/*.js,html/*.html,img/**}', {
deploy: fis.plugin('local-deliver', {
to: './publish'
})
})
// .match('{css/*.css,less/g.less,js/*.js,html/*.html,img/**}', {
fis
.media('test')
.match('publish/**', {
deploy: fis.plugin('http-push', {
receiver: 'receiver.php',
to: '/path/to/project'
})
})
html/index.html
,在上传之后变成了 html/index.html/
文件夹
并且又多出一个 html/index.htmlindex.html
的文件
from fis3.
忽略吧,我想可能要自己重新写一个了,因为我们的receiver.php 是有人改过的。。
from fis3.
试试这个: https://github.com/fex-team/fis3-deploy-http-push/blob/master/receiver.php
from fis3.
感谢 搞定了
from fis3.
Related Issues (20)
- 就告诉我作者是不是跑路了? HOT 2
- fis.match不能调用parser自定义方法
- _handle.Pngquant is not a constructor HOT 3
- fis3中cache.jsbug HOT 2
- 麻烦给个支持node版本说明 HOT 6
- optimizer.png-compressor: _handle.Pngcrush is not a constructor是什么意思 HOT 2
- fis3能不能集成rollup HOT 1
- fs3 [ v3.4.45 ] node [ v14.16.0 ] 执行 fis3 release -d ../dist 抛出异常 The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined HOT 2
- 启用了loader插件报message.content.replace is not a function
- fis3-deploy-http-push 的问题 HOT 1
- fis3依赖fis3-deploy-http-push2.0.6,fis3-deploy-http-push2.0.6依赖winston2.1.1,当我升级node版本到14,vue项目编译时报错(node:31521) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency HOT 3
- Update packages to avoid introducing vulnerablities HOT 2
- Trying to get in touch regarding a security issue
- 似乎在mac12.1系统版本里面热更新不生效了 HOT 3
- 在mock/server.conf下配置proxy时,如何替换/删除uri的前缀?
- 增加nodejs 14+支持 HOT 4
- react-router-dom的BrowserRouter,fis-conf该怎么配置才能解决再次刷新页面会显示404这个问题 HOT 1
- 不兼容高版本 node HOT 4
- fis3支持node版本问题 HOT 1
- 在deploy中插件中改变modified中文件内容,total中的文件内容不改变,fis3-deploy-replace改变内容后 fis3-deploy-zip打包出去的内容未改变
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.