Skip to content

Commit

Permalink
Showed how to abstract w/ alias.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwooley committed Oct 23, 2018
1 parent 89f15ba commit a79841e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
13 changes: 5 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,9 @@
"mac": {
"category": "your.app.category.type"
},
"files": [
"./src/main/main.js",
"build/*"
]
"files": ["./src/main/main.js", "build/*"]
},
"keywords": [
"parcel",
"react"
],
"keywords": ["parcel", "react"],
"contributors": [
"Michael Wooley <wm.wooley@gmail.com> (michaelwooley.github.io)"
],
Expand All @@ -51,5 +45,8 @@
"jest": "^23.5.0",
"npm-run-all": "^4.1.3",
"parcel-bundler": "^1.10.3"
},
"alias": {
"assets": "./assets"
}
}
3 changes: 2 additions & 1 deletion src/renderer/components/App.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, { Component } from "react";
import logo from "./../../../assets/logo.svg";
// import logo from "./../../../assets/logo.svg";
import logo from "assets/logo.svg";

class App extends Component {
render() {
Expand Down
Binary file added src/renderer/components/logo.svg_Shortcut.lnk
Binary file not shown.

0 comments on commit a79841e

Please sign in to comment.