2.0.0 • Published 7 years ago

devl v2.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
7 years ago

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!