ira-npx
v5.2.0
Published
Pack static files like html, css, javascript, images and so on. Different environment, different variables.
Downloads
4
Maintainers
Readme
npx
作为一个自认为合格的前端构建工具,npx 具备如下特性:
支持 ECMAScript 6 语法,通过 babel 可编译成兼容更广的 es 5。支持代码压缩、混淆,添加文件头。
支持 css 预处理语言,基于 postcss 实现,谨慎内置数个插件,支持 px 自动转 rem(自适应真的很需要这个)。可自定义配置。
支持 handlebars 模板
支持定义开发、预发、生产环境下变量,支持 js 中变量注入(很实用)
支持 vue.js、react.js 开发
可拓展的 webpack 任务
内置 eslint
内置本地开发服务器,支持 hmr
方便部署到远程服务器