Giter VIP home page Giter VIP logo

webpack-babel-three-template's Introduction

webpack + Babel + gulp + browser-sync template for Three.js

ver 0.5あたり

webpackとgulpを同時起動し各ファイルをコンパイルするテンプレート自分用。 Three.jsバージョン


使い方

start

$ npm run start
  • start-serve : browser-sync
  • webpack-watch : webpack(babel)
  • gulp
    • pug
    • sass
      • bourbon

その他の使い方

$ npm webpack-watch

などで単体起動も可能。


全体の流れ

gulp, webpack, browser-syncを平行起動、gulpとwebpackでhtml, cssまたはjsを監視、コンパイルし保存。コンパイル済みのファイルをbrowser-syncで監視してブラウザをリロードする。


各機能

gulp

/src/pug/**/*.pug
/src/sass/**/*.scss

をコンパイルしてdist以下にディレクトリを維持したまま保存

webpack

/src/js/app.js

をコンパイルし, /dist/app.bundle.jsとして保存

jqueryなどはvendorとしてchunkを保存、色々してあるのでimportしないでも動くかもしれない。

browser-sync

サーバーを管理し、/dist/ディレクトリにあるコンパイル済みのhtml, css, jsのみを監視してブラウザーをリロード

webpack-babel-three-template's People

Contributors

nanonum avatar

Watchers

 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.