Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.
This repository was archived by the owner on May 1, 2020. It is now read-only.

Args not being passed to configs due to worker-client #463

@alan-agius4

Description

@alan-agius4

Short description of the problem:

In my cleancss.config.js and uglifyjs.config.js, I am dependent on npm args. However the worker-client is being spawned as another process, which is causing the args not to be passed.

What behavior are you expecting?

The args are passed, this can be solved by not using the worker-client but the cleanCssWorker and uglifyjsWorker. To make it clear, I am not 100% sure what's the need and scope of the worker-client

const args = require("../args");

module.exports = {
	sourceFileName: `${args.output}/styles/app.mobile.css`,
	destFileName: `${args.output}/styles/app.mobile.css`,
};

Which @ionic/app-scripts version are you using? 0.0.46

Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions