GithubHelp home page GithubHelp logo

zdying / hiipack Goto Github PK

View Code? Open in Web Editor NEW
23.0 23.0 5.0 749 KB

hiipack is a front end development tool based on webpack.

License: MIT License

JavaScript 89.07% HTML 1.93% CSS 4.31% Vue 3.92% Shell 0.76%
compression developer-tools front-end nodejs proxy proxy-server webpack

hiipack's People

Contributors

zdying avatar zhouhailong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

hiipack's Issues

hiipack.pac提示找不到

日志如下
hiipack proxy file file:///var/folders/r9/pyf_2pnn67lchv0jsq3wxxjm0000gn/T/hiipack_cache/hiipack.pac

[error] proxy -> Server - ENOENT: no such file or directory, open '/var/folders/r9/pyf_2pnn67lchv0jsq3wxxjm0000gn/T/hiipack_cache/hiipack.pac'

大概是临时目录被清空了,找不到文件

favicon.ico提示错误

[error] Server - ENOENT: no such file or directory, stat '/example/path/index.htmlfavicon.ico'

最新版 hii min 报错

hii min 报错
hii start运行正常

报错信息如下:

[info] client - clean folder [ prd, ver ] ...
[info] Compiler - compiling [ lib.js ] ...
[info] Compiler - compile finished ( 2933ms )
[info] Compiler - compiling [ orderDetail/app.js ] ...
[info] Compiler - compile finished ( 486ms )
compile result:
Hash: 861ec26824f86f50dc52b6f758527704
Version: webpack 1.13.2
Time: 486ms

ERROR in ./src/orderDetail/app.js
Module build failed: Error: Cannot find module 'babylon' (While processing preset:       "/Users/huazihear/workspace/hotdog/touch_hotdog_react/node_modules/.npminstall/babel-preset-es2015/6.16.0/babel-preset-es2015/lib/index.js")
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/Users/huazihear/workspace/hotdog/touch_hotdog_react/node_modules/.npminstall/babel-traverse/6.16.0/babel-traverse/lib/path/replacement.js:28:16)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)

hii pack也把CSS压缩了

我的VUE工程目前已经完美运行在hii下啦,撒花~~
目前发现的一个问题是,当我执行hii pack时,发现css被压缩了
config里关于vue的配置如下:

vue: {
        loaders: {
            vue: 'babel-loader?presets[]=' + __hiipack__.resolve('babel-preset-es2015-loose')
              + '&plugins[]=' + __hiipack__.resolve('babel-plugin-transform-runtime') + '&comments=false',
            css: ExtractTextPlugin.extract('vue-style-loader', 'css!sass'),
            sass: ExtractTextPlugin.extract('vue-style-loader', 'css!sass'),
            scss: ExtractTextPlugin.extract('vue-style-loader', 'css!sass')
        }
    }

rewrite规则bug

rewrite支持全局设置proxy_set_header Host $onlineDomain;此时如果在某条规则下设置局部的proxy_set_header,会被全局覆盖,正常逻辑是局部设置覆盖全局设置吧

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.