Preload sound files for instant playback (#374)
* rm dist at start of build * renderer style * preload sound files for instant playback The first time a sound file is played, the Audio object is cached. 5s after startup, all sound files are automatically preloaded.
This commit is contained in:
@@ -15,6 +15,7 @@ var rimraf = require('rimraf')
|
||||
var BUILD_NAME = config.APP_NAME + '-v' + config.APP_VERSION
|
||||
|
||||
function build () {
|
||||
rimraf.sync(path.join(config.ROOT_PATH, 'dist'))
|
||||
var platform = process.argv[2]
|
||||
var packageType = process.argv.length > 3 ? process.argv[3] : 'all'
|
||||
if (platform === 'darwin') {
|
||||
|
||||
Reference in New Issue
Block a user