This is my gruntfile.js
module.exports = function (grunt) {
grunt.initConfig({
concat_css: {
options: {},
files: {
'dest/compiled.css': ['src/styles/componentA.css', 'src/styles/componentB.css'],
},
},
})
grunt.loadNpmTasks('grunt-concat-css');
grunt.registerTask('default', ['grunt-concat-css']);
}
I dont know if it’s a good channel for that. But i’ll try…
I use a ui-mask
plugin in angular 1.5.x
And strange thing happend. I include <script>
tag into my html and
<script type="text/javascript" src="bower_components/angular-ui-mask/dist/mask.js"></script>
. I added ui.mask
in my app module dependencies. I add to my app.config.js
this peace of code:
app.module('my-app‘)
.config(['uiMask.ConfigProvider', function(uiMaskConfigProvider) {
uiMaskConfigProvider.clearOnBlur(false);
}
And after minification and concatenation. I have an error about problem with injecting ConfigProvider.
I was trying to compare content of bower_components/angular-ui-mask/dist/mask.js
with minified components.js
and there wasnt some part of code :O
WTF :O
Hey guys!
I'm trying to figure out how to use grunt-ng-annotate for multiple directiries.
Now it works with one folder, but unfortunately doesn't with the second one.
Here's working config:
ngAnnotate: {
dist: {
files: [{
expand: true,
cwd: '.tmp/concat/scripts',
src: '*.js',
dest: '.tmp/concat/scripts'
}]
}
},
and I need something like this(to add js files from different folder into the process):
ngAnnotate: {
dist: {
files: [{
expand: true,
cwd: '.tmp/concat/scripts',
src: '*.js',
dest: '.tmp/concat/scripts'
}]
},
dev: {
files: [{
expand: true,
cwd: '<%= yeoman.app %>/components/',
src: '*.js',
dest: '.tmp/concat/scripts'
}]
}
},
And here's how 'build' task looks like:
grunt.registerTask('build', [
'clean:dist',
'wiredep',
'useminPrepare',
'concurrent:dist',
'autoprefixer',
'ngtemplates',
'concat',
'ngAnnotate',
'copy:dist',
'cdnify',
'cssmin',
'uglify',
'filerev',
'usemin',
'htmlmin',
'compress'
]);
Hi guys :) hope someone can help me with a simple stupid question.
I have a problem with grunt-contrib-uglify && grunt-contrib-concat.
We use it for SCSS files and JS files in our Project. It work's almost perfect. My problem now is, that grunt-contrib-concat creates a new CSS/JS file and after that uglify create a new .min.js/.min.css file. Thats pretty nice, but uglify doesn't delete the compiled file.
E.g.
- Sass
-- example.scss
-- Modules
--- _variables.scss
- Css
-- example.css
-- example.min.css
And the same with JS. How can i delete the useless files within the uglify task?
jshint
from this linegrunt.registerTask('default', ['jshint', 'qunit', 'concat', 'uglify']);
^ Expected an assignment or function call and instead saw an expression.
I'm getting this error, after installing, plugin-node-tab, I know its not likely to be a pattern lab issue
Loading "Gruntfile.js" tasks...ERROR
TypeError: Cannot read property 'options' of undefined
Googling this type of error does not show up anything useful.
Is there a way for me to find out more info about the error, the line even
Running "bowercopy:libs" (bowercopy) task
(node:427) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
bower not-cached git://github.com/bago/knockout-undomanager.git#v0.2.1
bower resolve git://github.com/bago/knockout-undomanager.git#v0.2.1
bower not-cached git://github.com/bago/knockout.wrap.git#mosaico
bower resolve git://github.com/bago/knockout.wrap.git#mosaico
bower not-cached git://github.com/Raynos/console-browserify.git#~1.0.3
bower resolve git://github.com/Raynos/console-browserify.git#~1.0.3
bower not-cached git://github.com/bago/colorpicker.git#mosaico
bower resolve git://github.com/bago/colorpicker.git#mosaico
...