Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

devl

2.0.0 • Public • Published

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!

Keywords

none

Install

npm i devl

DownloadsWeekly Downloads

2

Version

2.0.0

License

MIT

Last publish

Collaborators

  • avatar