Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

Bower support not working? #1580

Closed
sjaase opened this issue Dec 7, 2016 · 2 comments
Closed

Bower support not working? #1580

sjaase opened this issue Dec 7, 2016 · 2 comments

Comments

@sjaase
Copy link

sjaase commented Dec 7, 2016

I'm trying to use Brunch for a project but run into several issues using it. One them is the following:

I want the javascript files in the bower_components (wwwroot/lib) folder to be concatenated into a libs.js file. But what I end up with is a giant libs.js file including every js file in bower_components directory and not just the main files.

Not sure if I'm using this tool wrong or if it is a bug.

 module.exports = {
    files: {
        javascripts: {
            joinTo: {
                'app.js': 'wwwroot/app/**',
                'libs.js': 'wwwroot/lib/**'
            },
            order: {
                before: ['**/*.module.js']
            }
        },
        stylesheets: {
            joinTo: {
                'app.css': 'wwwroot/**'
            }
        }
    },
    paths: {
        watched: ['wwwroot/app', 'wwwroot/content', 'wwwroot/lib'],
        public: 'wwwroot/dist'
    },
    modules: {
        definition: false,
        wrapper: false
    },
    npm: {
        enabled: false
    },
    conventions: {
        vendor: /wwwroot\/lib\//
    }
}
@denysdovhan
Copy link
Contributor

Hi @sjaase! Thanks for noticing!

I will be glad to help you, but can you, please, make a GitHub repo that reproduce this bug? That would be much more easier for me to fix that problem.

@denysdovhan
Copy link
Contributor

Also, keep in mind that Brunch uses read-components module internally. Take a look at “Component JSON file must have main property.” section and make sure all your packages are work properly.

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

No branches or pull requests

3 participants