Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom transformation could affect order of files in bundle. #113

Open
acheshkov opened this issue Jul 10, 2018 · 0 comments
Open

Custom transformation could affect order of files in bundle. #113

acheshkov opened this issue Jul 10, 2018 · 0 comments

Comments

@acheshkov
Copy link

acheshkov commented Jul 10, 2018

Hi,

I use custom conditional browserfy transformation. In resulting bundle I have a problem to keep order of files. In example bellow I expect that jquery will go first but it does not.

var tfm = bundle.transformHelper.browserify(mainStream);
var typescriptTransforms = lazypipe()
  .pipe(function() {
    return gif(isTypescriptFile,  tfm());
  });

module.exports = {
    bundle: {
      vendor: {
        options: {
            transforms: { scripts: typescriptTransforms},
            order: {
                scripts: [
                    '**/jquery-1.10.2.js',
                    '!**/jquery-1.10.2.js'
                ]
            }
        },
        scripts: [
            './Scripts/jquery-1.10.2.js',
             // ... other files 
            './ts/index.ts',
             // ... other files 
        ]
      }
    }
  };

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant