- progress bar (simple)
- progress bar (useful)
- like electro-cardiogram
Last active
December 12, 2018 07:40
-
-
Save maiha/0d2fb1e1e95ea2385204a77e688775c3 to your computer and use it in GitHub Desktop.
- webpack-3.12.0
entry: {
'main.bundle.js': './src/assets/javascripts/main.js'
},
output: {
filename: '[name]',
path: path.resolve(__dirname, '../../public/dist'),
publicPath: '/dist'
},
function foo() {
}
module.exports = foo;
function bar() {
}
module.exports = bar;
import foo from './lib1.js'
import bar from './lib2.js'
if (!window.foo) { window.foo = foo; }
if (!window.bar) { window.bar = bar; }
<script src="/dist/main.bundle.js"></script>
<script>
window.foo();
</script>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment