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

styles do not use .min files by default like scripts #63

Open
chmontgomery opened this issue Jul 17, 2015 · 0 comments
Open

styles do not use .min files by default like scripts #63

chmontgomery opened this issue Jul 17, 2015 · 0 comments
Labels

Comments

@chmontgomery
Copy link
Contributor

By default, if minSrc files are specified and no useMin option is defined, minSrc should be used over src file.

For example, with no NODE_ENV defined, the following bundle.config.js will use jquery.min.js and bootstrap.css. It should use bootstrap.min.css instead.

module.exports = {
  bundle: {
    vendor: {
      scripts: {
        src: './bower_components/jquery/dist/jquery.js',
        minSrc: './bower_components/jquery/dist/jquery.min.js'
      },
      styles: {
        src: './bower_components/bootstrap/dist/css/bootstrap.css',
        minSrc: './bower_components/bootstrap/dist/css/bootstrap.min.css'
      }
    }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant