This file contains hidden or 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
module.exports = { | |
entry: './src/js/index.js', | |
output: { | |
path: path.resolve(__dirname, 'dist'), | |
filename: 'app.bundle.js', | |
}, | |
devtool: 'source-map', | |
module: { | |
rules: [{ | |
test: /\.js$/, |
This file contains hidden or 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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "chrome", | |
"request": "launch", | |
"name": "Launch Chrome against localhost", | |
"url": "http://localhost:3000", | |
"sourceMaps": true, | |
"webRoot": "${workspaceRoot}/dist", |
This file contains hidden or 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
class MenuDelegate: NSObject, NSMenuDelegate { | |
func menuWillOpen(_ menu: NSMenu) { | |
print("Menu opened!") | |
// do things | |
} | |
} | |
@NSApplicationMain | |
class AppDelegate: NSObject, NSApplicationDelegate { | |
var statusItem: NSStatusItem? |