Skip to content

Add BUILD_PATH env variable to customise naming of production folder #75

Description

@lucafalasco

Would be nice to change the path of the production folder, in my use case we have to create different folders at build time for each different language.
Example:

build/
-- app.js
-- index.html
-- assets/
-- fr/
---- app.js
---- index.html
-- de/
---- app.js
---- index.html

BUILD_PATH=build/fr

path: path.resolve('./build'),

Activity

  1. lucafalasco commented on Nov 16, 2020

    @lucafalasco
    ContributorAuthor

    Also maybe this line should be reverted?

    d432792#diff-9b7d14c4a3da62774803e2fe1499ba9cff536bfd18e4adf22a46b5e8012f4aa7L30-R29

    It would work perfectly if reading the path from config.output.path

  2. marcofugaro commented on Nov 16, 2020

    @marcofugaro
    Contributor

    Oops didn't realize that was an issue, I'll put back the config.output.path thing.

  3. marcofugaro commented on Nov 16, 2020

    @marcofugaro
    Contributor

    Done.

  4. lucafalasco commented on Nov 16, 2020

    @lucafalasco
    ContributorAuthor

    @marcofugaro nice, although I'm going to reopen this for the main issue which is supporting a BUILD_PATH env variable ok?

  5. marcofugaro commented on Nov 16, 2020

    @marcofugaro
    Contributor

    Sure, is setting it from the webpack.config.js not enough?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions