Initial commit
This commit is contained in:
5
src/entity.js
Normal file
5
src/entity.js
Normal file
@@ -0,0 +1,5 @@
|
||||
export default class Entity {
|
||||
constructor(id) {
|
||||
this.id = id;
|
||||
}
|
||||
}
|
||||
6
src/index.js
Normal file
6
src/index.js
Normal file
@@ -0,0 +1,6 @@
|
||||
import Entity from "./entity";
|
||||
|
||||
document.write("Je débute avec Webpack !");
|
||||
|
||||
const entity = new Entity('id test');
|
||||
document.write(entity.id);
|
||||
Reference in New Issue
Block a user