[Poi] Use Poi to Build an Index.js with Modern JavaScript Features
2018-01-02 17:40
567 查看
Poi can easily launch an
Install:
Code:
Run:
index.jsfile simply by running the
poicommand. This will launch a dev-server and automatically reload whenever you make changes. You can also
npm installany package you need and
importit right away.
Install:
npm install -g poi
Code:
// src/index.js import {Observable} from 'rxjs'; Observable.intervable(1000).subscribe( i = > document.getElementById("app").innerHTML = ` <h1>{i}</h1> ` )
Run:
poi src/index --port 3000
相关文章推荐
- [Nuxt] Build a Vue.js Form then use Vuex Actions to Post to an API in Nuxt
- [Yii Framework] How to develop an extension with image, css and js
- [CSSinJS] Convert Sass (SCSS) Styled Button to CSSinJS with JavaScript Templates and Variables
- How To Use Putty with an SSH Private Key Generated by OpenSSH
- How to Build an Android Project with Eclipse
- javascript - C++, Qt, QtWebKit: How to create an html rendering window so that your application would get callbacks from JS calls? - Stack Overflow
- How To Work With JSON In Node.js / JavaScript
- Err:The "." operator was supplied with an index value of type "java.lang.String" to be applied to a List or array
- A tutorial that will show you how to build an instant messaging app with Sinch.
- ORA-14452: attempt to create, alter or drop an index on temporary table already in use
- Apply wininet dbg version to an app build with vs2008.
- Why we made vorlon.js and how to use it to debug your JavaScript remotely
- use noscript html tag when user disable the javascript in browser, guide user how to enable the js in different browser and retu
- How to build a mobile app with an App Engine backend
- 在excel中创建sheet的索引 Use index sheets to quickly navigate in an Excel workbook
- [Javascript] Add a browser build to an npm module
- [Javascript] Creating an Immutable Object Graph with Immutable.js Map()
- [Poi] Build and Analyze Your JavaScript Bundles with Poi
- 一个大牛的系列文章:An intro to modern OpenGL. Chapter 4: Rendering a Dynamic 3D Scene with Phong Shading
- [Poi] Customize Babel to Build a React App with Poi