generated from GrabovyiS/vanilla-js-frontend-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: reconfigure webpack to work with modules
Removed unnecessary entry and associated things because for now this app only needs one page and added a new rule to be able to import modules without fully specifying name, as per in this issue: facebook/create-react-app#11865 (comment).
- Loading branch information
Showing
4 changed files
with
12 additions
and
39 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
import './assets/styles/reset.css'; | ||
import './assets//styles/normalize.css'; | ||
import './assets/images/placeholder.png'; | ||
import createDiv from './components/createDiv.js'; | ||
import getWeather from './data/getWeather.js'; | ||
|
||
console.log('this is index!', createDiv()); | ||
import Player from './data/Player'; | ||
import ComputerPlayer from './data/ComputerPlayer'; | ||
|
||
getWeather('moscow', 'metric').then((weatherData) => { | ||
console.log('done'); | ||
const output = document.createElement('p'); | ||
output.textContent = weatherData.resolvedAddress; | ||
document.querySelector('body').append(output); | ||
}); | ||
let player = Player(); | ||
let computerPlayer = ComputerPlayer(); | ||
|
||
console.log('We are live baybe!'); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters