Skip to content

Commit b054d4f

Browse files
authored
Merge pull request #6 from gwenaelp/master
Webpack 101 article : add example
2 parents a47eff7 + 781d712 commit b054d4f

File tree

7 files changed

+4181
-0
lines changed

7 files changed

+4181
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
path = require('path');
2+
3+
module.exports = {
4+
entry: './src/index.js',
5+
output: {
6+
path: path.resolve(__dirname, '../dist'),
7+
filename: 'bundle.js'
8+
}
9+
};
10+

webpack-101-empower-your-web-projects-with-modern-javascript/example/dist/bundle.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Your project</title>
5+
<script type="text/javascript" src="dist/bundle.js"></script>
6+
</head>
7+
<body>
8+
<p>Press "A" or "B" key to open modal</p>
9+
<p>You can add extra content directly into your index.html file as well</p>
10+
</body>
11+
</html>

0 commit comments

Comments
 (0)