mirror of
https://github.com/zero-peak/ZeroOmega.git
synced 2025-01-22 15:08:12 -05:00
44 lines
1.1 KiB
CoffeeScript
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')]
|