devl
A development server.
Last updated 3 years ago by audinue .
MIT · Original npm · Tarball · package.json
$ cnpm install devl 
SYNC missed versions from official npm registry.

devl

A development server.

$ echo export default 'Hello world' > hello-world.js
$ echo import helloWorld from './hello-world'; alert(helloWorld) > hello-world-test.js
$ devl
Server is started on port 3333.

Then open http://localhost:3333/hello-world-test.devl in your browser.

You will get this:

<!DOCTYPE html>
<html>
    <head>
        <title>hello-world-test</title>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width">
        <meta http-equiv="X-UA-Compatible" content="IE=EDGE">
    </head>
    <body>
        <script src="/hello-world-test.devl-bundle"></script>
    </body>
</html>

Where /hello-world-test.devl-bundle is:

(function () {
var helloWorld = 'Hello world';

alert(helloWorld);

}());
//# sourceMappingURL=/hello-world-test.devl-bundle.map

Enjoy!

Current Tags

  • 2.0.0                                ...           latest (3 years ago)

1 Versions

  • 2.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 5
Dependencies (4)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |