GithubHelp home page GithubHelp logo

sparkinzy / spm-chaos-build-example Goto Github PK

View Code? Open in Web Editor NEW

This project forked from edokeh/spm-chaos-build-example

0.0 2.0 0.0 347 KB

A simple example for spm-chaos-build

Ruby 0.06% HTML 0.53% JavaScript 99.40% CSS 0.01%

spm-chaos-build-example's Introduction

spm-chaos-build-example

A simple example for spm-chaos-build


Getting Started

这是一个简单的示例,用来演示如何使用 spm-chaos-build

首先请先确保你已经安装了最新的 NodeJS & git,然后安装 Spm & spm-chaos-build

$ npm install spm -g
$ npm install spm-chaos-build -g

最后执行以下命令打包合并业务代码

$ cd js
$ spm chaos-build example -C seajs-config.js

完成后会在 js/sea-modules 目录下生成 example 子目录,里面是最终代码

这时候访问 HTML 页面时请求的 JS 文件都是打包过后的(最好使用 HTTP 方式访问)

spm-chaos-build-example's People

Contributors

edokeh avatar

Watchers

James Cloos avatar Talent Su 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.