Преглед изворни кода

Faster bench build in development

version-14
Faris Ansari пре 7 година
родитељ
комит
1de429f275
2 измењених фајлова са 4 додато и 2 уклоњено
  1. +1
    -1
      frappe/build.js
  2. +3
    -1
      frappe/commands/utils.py

+ 1
- 1
frappe/build.js Прегледај датотеку

@@ -144,7 +144,7 @@ function get_compiled_file(file, output_path, minify, force_compile) {
file_content = minify_js(file_content, file);
}

if (file.endsWith('.js') && !file.includes('/lib/') && output_type === 'js' && !file.endsWith('class.js')) {
if (minify && file.endsWith('.js') && !file.includes('/lib/') && output_type === 'js' && !file.endsWith('class.js')) {
file_content = babelify(file_content, file, minify);
}



+ 3
- 1
frappe/commands/utils.py Прегледај датотеку

@@ -15,7 +15,9 @@ def build(make_copy=False, restore = False, verbose=False):
import frappe.build
import frappe
frappe.init('')
frappe.build.bundle(False, make_copy=make_copy, restore = restore, verbose=verbose)
# don't minify in developer_mode for faster builds
no_compress = frappe.local.conf.developer_mode or False
frappe.build.bundle(no_compress, make_copy=make_copy, restore = restore, verbose=verbose)

@click.command('watch')
def watch():


Loading…
Откажи
Сачувај