Closed Panman82 closed 8 years ago
@linstula Thoughts on this PR? I made one change today but think this should be solid.
@Panman8201 I made some comments on the different commits. A few changes will need to be made but looks good. Thanks for your work, a lot of good additions.
@linstula I'll try to update this PR per your comments sometime this weekend. I seen that you fixed the import options issue so I'll remove that.
So you don't want to import the minified files? It'd be nice if ember-cli would know which files are minified to not re-minify, reducing overhead. I guess I've been using the minified files in my addons..
End users should have the ability to decide whether they want to minfy assets (for example, if you want to debug code in production but don't want to minify the assets so you can actually read the code). Ember-cli gives users a way to specify whether to minify or not. If we always use minified code when the environment is in production, we break the users ability to customize this option. So we should rely on the options passed to ember-cli and not preemptively use minified assets.
On Saturday, January 10, 2015, Ryan Panning notifications@github.com wrote:
@linstula https://github.com/linstula I'll try to update this PR per your comments sometime this weekend. I seen that you fixed the import options issue so I'll remove that.
So you don't want to import the minified files? It'd be nice if ember-cli would know which files are minified to not re-minify, reducing overhead. I guess I've been using the minified files in my addons..
— Reply to this email directly or view it on GitHub https://github.com/linstula/ember-cli-bootstrap/pull/37#issuecomment-69470065 .
Going through my forked repos ATM. This one is long out-of-date so I'll just close it.
After working on ember-cli-bootswatch, I discovered several issues with the latest release of this addon. This PR fixes several bugs and adds some improvements:
importBootstrapCSS
andimportBootstrapFont
optionif
statements inindex.js
were incorrect. Basically was the opposite of the option name, fixed and also enabled backwards compatibility, if the options were not included from the projectsBrocfile.js
.import()
the minified version of several files for production builds. Since the bower deps include minified versions, I've typically included them..map
files from being imported in production builds. They are not needed and are not referenced in the minified stylesheets.bootstrap_for_ember
components were being imported twice. Because there is a file for both max and min, the previousreaddir()
was including the filename twice, therefore imported twice.I'd suggest at least fixing the shim.js error and incorrect option statements. Then release a new version since the current version of this addon is un-usable. Thanks for your consideration!