app.js
import bar from './bar';
bar();
export default function bar() {
//
}
webpack.config.js
module.exports = {
entry: './app.js',
output: {
filename: 'bundle.js'
}
};
<!doctype html>
<html>
<head>
...
</head>
<body>
...
<script src="bundle.js"></script>
</body>
</html>
© Copyright. . simonwalkertype.com . All Rights Reserved. Terms | Site Map