Git Product home page Git Product logo

fis3's Introduction

文档结构

output
src

css
js
img
layout(其他子页面)
index.html

一、安装fis3(确保已经安装了node)

执行cmd命令 npm install -g fis3
安装完成后,测试是否安装成功,输入命令: fis3 -v
注意:打包完后生成的文件是绝对路径(需要用到服务器打开), 如果需要改为相对路径请输入命令:npm install -g fis3-hook-relative

二、打包步骤

浏览器自动刷新(两种方法选一种即可,推荐第二种)

方法一:运行命令 fis3 release -wL
方法二:双击dev.bat文件,每次修改后保存文件,该程序自动记录修改时间,并启动网页即时刷新。请勿关闭该窗口 !!!

三、项目发布

发布后会在src同级目录下产生output文件夹(两种方法选一种即可,推荐第二种)

方法一:运行命令 fis3 release -d ../output (../output是将要发布到的文件路径)
方法二:双击release.bat文件即可

四、启动fis3自带的服务器进行测试

运行命令:fis3 server start (会产生一个本地服务地址)

五、查看打包后的到本地服务里的文件

运行命令:fis3 server open

注意

  • 下载下来的是可以进行 js、css、less、es6 打包的

  • fis-conf.js 文件里的配置是可以根据自己的需求调整的



后期完善

1.less编译后的css进行压缩

fis3's People

Contributors

shanxinlin avatar

Watchers

James Cloos avatar

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.