Skip to content

Commit

Permalink
proof on concept, remote.app
Browse files Browse the repository at this point in the history
  • Loading branch information
SimulatedGREG committed Jun 2, 2016
1 parent 79bc549 commit f634956
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"author": "SimulatedGREG <simulatedgreg@gmail.com>",
"private": true,
"scripts": {
"dev": "webpack-dev-server --inline --hot",
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules"
"dev": "webpack-dev-server --inline --hot --colors",
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules --colors"
},
"dependencies": {
"vue": "^1.0.0",
Expand Down
2 changes: 1 addition & 1 deletion app/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import VueElectron from '../../index.js'

Vue.use(VueElectron)

new Vue({
window.app = new Vue({
el: 'body',
components: { App }
})
3 changes: 2 additions & 1 deletion app/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ module.exports = {
historyApiFallback: true,
noInfo: true
},
devtool: '#eval-source-map'
devtool: '#eval-source-map',
target: 'electron-renderer'
}

if (process.env.NODE_ENV === 'production') {
Expand Down
3 changes: 3 additions & 0 deletions src/apis/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { remote } from 'electron'

export default remote.app

0 comments on commit f634956

Please sign in to comment.