question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

JS:concat-processing gigant time required

See original GitHub issue

Hi, guys. First of all I really want to say thank you for great tool. I’m happy to use it, but now I have some unpleasant issue. js:concat-processing required about 4-5 min. Mb you have some solution or any ideas about the reason of this trouble.

Please find below my tars-config file

module.exports = {
    "autoprefixerConfig": [
        "> 1%",
        "last 2 versions",
        "Firefox ESR",
        "android 4"
    ],
    "postcss": [],
    "svg": {
        "active": true,
        "workflow": "sprite",
        "symbolsConfig": {
            "loadingType": "inject",
            "usePolyfillForExternalSymbols": true,
            "pathToExternalSymbolsFile": ""
        }
    },
    "js": {
        "workflow": "concat",
        "bundler": "webpack",
        "lint": true,
        "useBabel": false,
        "removeConsoleLog": true,
        "webpack": {
            "useHMR": false
        },
        "jsPathsToConcatBeforeModulesJs": [],
        "lintJsCodeBeforeModules": false,
        "jsPathsToConcatAfterModulesJs": [],
        "lintJsCodeAfterModules": false
    },
    "sourcemaps": {
        "js": {
            "active": true,
            "inline": true
        },
        "css": {
            "active": true,
            "inline": true
        }
    },
    "notifyConfig": {
        "useNotify": true,
        "title": "TARS notification",
        "sounds": {},
        "taskFinishedText": "Task finished at: "
    },
    "browserSyncConfig": {
        "baseDir": "./dev",
        "port": 3004,
        "open": true,
        "browser": "default",
        "startUrl": "/index.html",
        "useNotifyInBrowser": true,
        "injectChanges": false
    },
    "minifyHtml": false,
    "staticPrefix": "static/",
    "buildPath": "./builds/",
    "useBuildVersioning": true,
    "useArchiver": true,
    "ulimit": 4096,
    "templater": "jade",
    "cssPreprocessor": "scss",
    "useImagesForDisplayWithDpi": [
        96,
        192,
        288,
        384
    ],
    "fs": {
        "staticFolderName": "static",
        "imagesFolderName": "img"
    },
    "useBabel": false
};

Thank you in advance

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
artem-malkocommented, May 10, 2016

@elektrobober can you add log from your terminal with info about js-compilation? How many js-files do you have?

0reactions
artem-malkocommented, May 18, 2016
Read more comments on GitHub >

github_iconTop Results From Across the Web

Javascript Array.push is 945x faster than Array.concat - DEV ...
It took 6 seconds to merge 15,000 arrays that each had an average size of 5 elements with .concat . What? 6 seconds......
Read more >
Javascript Array.push is 945x faster than Array.concat
It took 6 seconds to merge 15,000 arrays that each had an average size of 5 elements with .concat . What? 6 seconds......
Read more >
Building large strings in JavaScript ; Is join method most ...
In writing a database to disk as a text file of JSON strings. I see no reason to store the data in a...
Read more >
Speed Up Your Javascript Load Time - BetterExplained
Only core files that are absolutely needed in the beginning of the page load should be there. The rest, like cool menu effects,...
Read more >
concat() / Reference / Processing.org
Concatenates two arrays. For example, concatenating the array { 1, 2, 3 } and the array { 4, 5, 6 } yields {...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found