grunt-usemin Questions
4
I have an AngularJS app I'm working on usemin tasks for. This app has 2 html pages, both include a block minified into a common.js and the other pages include js minified for those specific pages.
...
Circinate asked 9/10, 2014 at 15:1
2
Solved
I am new to grunt. I have nearly 20-30 js files in my project. I came to know that We are already using grunt to minify and concatenate them. For debug purpose I need to stop minification but retai...
Gherlein asked 7/11, 2013 at 12:33
4
My project is a pretty basic yo/angular project. I have the following cssmin config.
useminPrepare: {
html: '<%= yeoman.app %>/index.html',
options: {
dest: '<%= yeoman.dist %>',
...
Phytogenesis asked 26/5, 2016 at 2:16
2
Solved
Short Version:
Is there a way, using Grunt, to include minified CSS and JavaScript inline?
To use usemin's formatting as an example, I would like to see something like this:
<!-- build:css...
Bourguiba asked 29/10, 2013 at 2:48
1
Background
I am using Yeoman webapp to scaffold my frontend.
Within the gruntfile, they are using grunt-rev and grunt-usemin
Grunt-rev will "rev'ed" my assets and grunt-usemin will update the ass...
Empoverish asked 2/10, 2014 at 1:27
3
Grunt is messing my minified CSS and I cannot figure out why and how to avoid it.
To be brief, before the minification I have some background images like this:
.head-image {
height: 380px;
bac...
Credits asked 17/7, 2014 at 9:55
1
Solved
I am using Grunt-usemin. But the concatenated JS is not properly separated by ';'. How do I tell usemin to add the separator only for JS files but not CSS files?
Currently, my usemin tasks look li...
Battista asked 20/5, 2014 at 2:45
5
Solved
I started with an empty project generated by yeoman, and tried to edit the Gruntfile.js to fit my needs.
The grunt build task reads my index.html file, and concatenates my bower dependencies and g...
Accolade asked 19/3, 2014 at 14:17
6
From the usemin issues it appears that usemin and useminPrepare support multiple targets in the latest version:
Support multiple targets in useminPrepare:
pull#162
pull#206
usemin support:
Mul...
Munsey asked 11/12, 2013 at 11:25
3
Solved
I have code that makes it easy and fast to write/test code, that code does not belong in my production code (mostly it mocks out the server so I only need the grunt server).
Two parts to this, one...
Orchestral asked 8/12, 2013 at 23:37
5
after running the build from the /dist folder I get:
Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.2.1/$injector/modulerr?p0=ourname&p1=Error%3A…(http%3A%2F%2Flocalhost%3A...
Hollinger asked 20/11, 2013 at 14:31
1
I used Yeoman to scaffold an AngularJS project. I'm using the 'rev' task to help ensure that my images, scripts, styles, etc. are uniquely identified.
Within my AngularJS application, I have a tem...
Barm asked 28/3, 2014 at 16:37
2
I'm currently setting up grunt-usemin for our project but I'm running in a small issue with the cssmin task.
Our project depends on a few external libraries, some which bring a long some extra ass...
Radcliffe asked 4/2, 2014 at 21:25
9
I have a grunt project backed by a yeoman-generator that I've built based on the generator-webapp, if it's of any help, you can find it on GitHub
The grunt project makes us of the grunt-usemin tas...
Cristencristi asked 23/9, 2013 at 17:1
1
Currently i have a few html files that look like this:
<!-- build:js({.tmp,app}) scripts/moduleX-scripts.js -->
<script src="scripts/moduleX/moduleXConfig.js"></script>
<sc...
Cambridgeshire asked 19/7, 2014 at 7:42
1
I am looking for a better glob pattern for usemin, i want to to find all .js files but exclude the .spec.js files. I have the following solution so far.
<script src="components/**/*(.js|!(*.spe...
Academic asked 29/10, 2014 at 19:44
6
grunt-usemin helps me to transform
<link href="/dependencies/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet" />
<link href="/dependencies/nanoscroller/bin/css/nanoscroller.css" rel...
Cupro asked 31/10, 2013 at 11:56
1
Solved
We have 2 blocks defined in our index.html - one for 3rd party libs and one for our application files. Since 3rd party libs are already minified, we just want to concatenate them, but not uglify. H...
Phenomenology asked 4/7, 2014 at 11:10
2
I'm building a Django app that serves a single page Angular app.
Django serve's Angular's index.html which has the following usemin script block:
<!-- build:js scripts/scripts.js -->
<sc...
Vogele asked 17/8, 2013 at 15:42
1
Solved
On Grunt build, how do I capture the proper pathing of bower_components to create a single vendor.js file full of bower components within my dist folder. I've pin pointed the reason, Grunt build's ...
Lac asked 18/6, 2014 at 0:35
1
For example: Im using the current configuration below to uglify my JS scripts in my Gruntfile:
uglify: {
options: {
report: "min", //"gzip",
sourceMap: true,
preserveComments: false, //"some"...
Fugleman asked 6/4, 2014 at 13:31
1
Solved
I just created a new webapp using the angular-fullstack yeoman generator.
I noticed that grunt-bower-install is generating the JS bower components in my index.html files between the <!-- bower:...
Grubby asked 16/5, 2014 at 17:24
2
Having a lot of trouble understand how paths are treated at various points in the configuration and usage of grunt-usemin.
I've got the following repo layout, where the repo root will also be the ...
Foxglove asked 25/9, 2013 at 20:48
1
I have a working yeoman project. I am using grunt-usemin.
To include javascripts, I do this in index.html:
<!-- build:js scripts/includes.js -->
<script src="/bower_components/jquery/jqu...
Patrickpatrilateral asked 20/1, 2014 at 11:31
2
Solved
I am trying to use grunt-usemin to minify my css. I am using Font Awesome like this within my index.html
<link rel="stylesheet" href="components/font-awesome/css/font-awesome.min.css">
Wh...
Delmore asked 14/8, 2013 at 2:37
1 Next >
© 2022 - 2024 — McMap. All rights reserved.