Closed rbonillajr closed 9 years ago
Fix is in concat and uglify, in rutha-grunt-tasks-ui
module.exports = {
options: {
separator: ';',
},
dev: {
src: ['src/app/app.js',
'src/app/common/**/*.js',
'src/app/**/*.js'],
dest: 'dist/app.js',
},
build: {
src: ['src/app/app.js',
'src/app/common/**/*.js',
'src/app/**/*.js'],
dest: 'dist/app.js'
}
};
module.exports = {
dev: {
options: {
sourceMap: true,
sourceMapIncludeSources: true,
sourceMapName: 'dist/sourcemap.map',
mangle: false
},
files: {
'dist/app.js': ['dist/app.js']
}
},
build: {
options: {
sourceMap: true,
sourceMapIncludeSources: true,
sourceMapName: 'dist/sourcemap.map'
},
files: {
'dist/app.js': ['dist/app.js']
}
}
};
the definition of the controller makes in alphabetical order.
Error: [ng:areq] Argument 'MyCtrl' is not a function, got undefined