import bar from './ bar.js' ;
bar ( ) ;
export default function bar ( ) {
//
}
const path = require ( 'path' ) ; module . exports = { entry : './ src/index.js' , output : { path : path . resolve ( __dirname , 'dist' ) , filename : 'bundle.js' ,
} ,
} ;
<! DOCTYPE html >
< html >
< head >
< meta charset = " utf-8 " /> ... </ head >
< body > ... < script src = " dist/bundle.js " > </ script >
</ body >
</ html >