Просмотр исходного кода

rename entry.js to index.js

this is a remnant from the webpack tutorial. i think index.js sounds
nicer, even though it should get split up into multiple files and be
just setup at some point.
Lucas Stadler лет назад: 11
Родитель
Сommit
60f23fa643
3 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      js/react/README.md
  2. 0 0
      js/react/index.js
  3. 1 1
      js/react/webpack.config.js

+ 1 - 1
js/react/README.md

26
26
27
# visit index.html in your browser
27
# visit index.html in your browser
28
28
29
$ vi entry.js      # change something!
29
$ vi index.js      # change something!
30
```
30
```
31
31
32
## Ideas
32
## Ideas

js/react/entry.js → js/react/index.js


+ 1 - 1
js/react/webpack.config.js

1
module.exports = {
1
module.exports = {
2
	entry: "./entry.js",
2
	entry: "./index.js",
3
	output: {
3
	output: {
4
		path: __dirname,
4
		path: __dirname,
5
		filename: "bundle.js"
5
		filename: "bundle.js"