Преглед на файлове

Merge pull request #4659 from netchampfaris/fast-bench-build

Faster bench build in development
version-14
Prateeksha Singh преди 7 години
committed by GitHub
родител
ревизия
56bf54322f
No known key found for this signature in database GPG ключ ID: 4AEE18F83AFDEB23
променени са 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():


Зареждане…
Отказ
Запис