ZeroOmega/omega-target-chromium-extension/grunt/browserify.coffee
2017-08-02 22:46:08 -04:00

44 lines
1.1 KiB
CoffeeScript

path = require('path')
module.exports =
index:
files:
'index.js': 'index.coffee'
options:
transform: ['coffeeify']
exclude: ['bluebird', 'omega-pac', 'omega-target']
browserifyOptions:
extensions: '.coffee'
builtins: []
standalone: 'index.coffee'
debug: true
browser:
files:
'omega_target_chromium_extension.min.js': 'index.coffee'
options:
alias: [
'./index.coffee:OmegaTargetChromium'
]
transform: ['coffeeify']
plugin:
if process.env.BUILD == 'release'
[['minifyify', {map: false}]]
else
[]
browserifyOptions:
extensions: '.coffee'
standalone: 'OmegaTargetChromium'
omega_webext_proxy_script:
files:
'build/js/omega_webext_proxy_script.min.js':
'src/js/omega_webext_proxy_script.js'
options:
alias:
'omega-pac': 'omega-pac/omega_pac.min.js'
plugin:
if process.env.BUILD == 'release'
[['minifyify', {map: false}]]
else
[]
browserifyOptions:
noParse: [require.resolve('omega-pac/omega_pac.min.js')]