Comments (17)
另外,既然代理增加了配置文件,那默认端口也可以到配置文件里配置才好,
因为hexo server好像默认用了3000端口(好像是browsersync用的),所以感觉默认3000端口不是个好默认值,
或者说可以设置成默认某一个值,然后检查是否可用,不可用就加1,这样想用wept打开多个小程序时比较有用,不用传参数,反正启动后会告诉是哪个端口。
from wept.
0.4.1 中修复了 wxss 中无法使用 @import 的问题,你可能用的是 0.4.0
端口可以通过命令行 -p 参数修改,我可以改成同时支持配置文件里面的 port
from wept.
好的,多谢改端口我知道,只是觉得可以方便点
Get Outlook for iOS
On Sun, Nov 13, 2016 at 3:18 PM +0800, "Qiming zhao" [email protected] wrote:
0.4.1 中修复了 wxss 中无法使用 @import 的问题,你可能用的是 0.4.0
端口可以通过命令行 -p 参数修改,我可以改成同时支持配置文件里面的 port
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
from wept.
This error still occurs in
wept --version
0.4.2 103100
from wept.
把你的 app.wxss 文件和目录文件结构发出来我看下。
from wept.
@import "components/bottomnav/bottomnav.wxss";
components 目录在项目根目录下。
from wept.
@yangg 你的 app.wxs 跟 components 是同一层目录吗?不是肯定找不到的
from wept.
@yangg 我测试了 0.4.2 版本是没问题的,你把错误日志再发一下,看下是不是找不到 import 对应文件
from wept.
是同一级啊,微信开发工具没问题。
Error: Command failed: /Users/brook/.nvm/versions/node/v6.2.1/lib/node_modules/wept/bin/wcsc -lc ./app.wxss
ERR: path `components/bottomnav/bottomnav.wxss` not found from `./app.wxss`.
error file count: 0
at ChildProcess.exithandler (child_process.js:207:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:852:16)
at Socket.<anonymous> (internal/child_process.js:323:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:492:12)
Error: app.wxss 编译失败,请检查
at /Users/brook/.nvm/versions/node/v6.2.1/lib/node_modules/wept/build/parser.js:60:27
at ChildProcess.exithandler (child_process.js:214:5)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:852:16)
at Socket.<anonymous> (internal/child_process.js:323:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:492:12)
--> GET /app/app.wxss?w=375&r=2 404 89ms -
Error: Command failed: /Users/brook/.nvm/versions/node/v6.2.1/lib/node_modules/wept/bin/wcsc -lc ./pages/index/index.wxss ./components/goods/goods.wxss
ERR: path `../../components/loadmore/loadmore.wxss` not found from `./pages/index/index.wxss`.
path `../../components/backtop/backtop.wxss` not found from `./pages/index/index.wxss`.
error file count: 0
at ChildProcess.exithandler (child_process.js:207:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:852:16)
at Socket.<anonymous> (internal/child_process.js:323:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:492:12)
Error: pages/index/index.wxss 编译失败,请检查
at /Users/brook/.nvm/versions/node/v6.2.1/lib/node_modules/wept/build/parser.js:60:27
at ChildProcess.exithandler (child_process.js:214:5)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:852:16)
at Socket.<anonymous> (internal/child_process.js:323:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:492:12)
from wept.
我也是同样的情况:
ERR: path style/font.wxss
not found from ./app.wxss
.
path style/white-block.wxss
not found from ./app.wxss
.
path style/car-config.wxss
not found from ./app.wxss
.
path style/weui.wxss
not found from ./app.wxss
.
path style/tag.wxss
not found from ./app.wxss
.
path style/animate.wxss
not found from ./app.wxss
.
path style/tab-animate.wxss
not found from ./app.wxss
.
path tmpl/swiper/swiper.wxss
not found from ./app.wxss
.
path tmpl/loader/loader.wxss
not found from ./app.wxss
.
path tmpl/appslide/appslide.wxss
not found from ./app.wxss
.
path tmpl/listView/listView.wxss
not found from ./app.wxss
.
path tmpl/tab/tab.wxss
not found from ./app.wxss
.
path tmpl/not-found/not-found.wxss
not found from ./app.wxss
.
path tmpl/result/result.wxss
not found from ./app.wxss
.
from wept.
@yangg @jackyon 你们的 app.wxss 中 @import 是怎么写的?
from wept.
@import 'style/styles.wxss';
@import 'style/font.wxss';
@import 'style/white-block.wxss';
@import 'style/car-config.wxss';
@import 'style/weui.wxss';
@import 'style/tag.wxss';
@import 'style/animate.wxss';
@import 'style/tab-animate.wxss';
/*模板样式*/
@import 'tmpl/swiper/swiper.wxss';
@import 'tmpl/loader/loader.wxss';
@import 'tmpl/appslide/appslide.wxss';
@import 'tmpl/listView/listView.wxss';
@import 'tmpl/tab/tab.wxss';
@import 'tmpl/not-found/not-found.wxss';
@import 'tmpl/result/result.wxss';
from wept.
确实有 bug,是我哪里写错了
from wept.
@yangg 你的问她跟他的不一样,因为你一个 import 文件都没找到,我怀疑是没写分号导致的。
@jackyon 你的问题应该已经修复了
from wept.
貌似npm包还没更新到,现在还是0.4.3版本
from wept.
@jackyon 刚发
from wept.
problem solved, thx!
from wept.
Related Issues (20)
- 0.9.5没改好啊... HOT 2
- WXML数据绑定 HOT 1
- 运行提示...扩展操作符错误 HOT 11
- wept不能正常监听代码变化? HOT 1
- wx.getBackgroundAudioManager is not a function
- 编译时显示错误
- 微信小程序可npm构建后,wept不支持了,没有找到相关的替代品(想在浏览器上调试小程序),没办法就来这里提一下
- gulp 版本4.0.x gulpfile文件写法问题
- wept是否支持linux运行? HOT 2
- uni-app 已经 Dev:阶段编译了 在 dist 目录执行 wept 会报错 怎么搞 HOT 2
- cd case && wept 报错 HOT 2
- 编译wxss错误
- Trying to get in touch regarding a security issue
- Android编译的在哪
- 这个项目凉了吗
- wxml中的注释引发的编译错误及可能的解决办法
- Uncaught TypeError: wx.getAccountInfoSync is not a function
- wept 2.0 什么时候出? HOT 2
- wx.showLoading不支持
- 本地调试报错
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 wept.