This is the source for the ES6 features
npm global dependencies
- BrowserSync
- Webpack
npm install
npm start
This should open your web browser with the BrowserSync server running and watching for changes.
Open up the console in your dev tools!
See package.json
for npm start
details.
ES6 (ES2015) introduces a standardized module format to Javascript.
Using Webpack to bundle up our modules and Babel to transpile our ES6 into ES5.
Some Common Import/Export Variations
import {someFunction} from 'someModule';
import {someFunction as someAlias} from 'someModule';
import * as someModule from 'someModule';
export function someFunction() {/* */};
function someFunction() {/* */}; export {someFunction};
function someFunction() {/* */}; export {someFunction as someAlias};