I am new to Angular 2 development and if it was not enough i am trying to integrate with the Play framework being the back-end side.
I am trying to follow a great post about the set-up of that kind by Denis Sinyakov: https://www.toptal.com/java/building-modern-web-applications-with-angularjs-and-play-framework
The idea is to proxy the requests incoming to the Angular app to the Play app.
It it suggested to include the 'autoprefixer' task as part of the configuration with which i encounter problems. When i start the Angular app i get following error:
jit-grunt: Plugin for the "autoprefixer" task not found.
Here are parts of my Gruntfile.js which may be of interest.
// Time how long tasks take. Can help when optimizing build times
require('time-grunt')(grunt);
// Automatically load required Grunt tasks
require('jit-grunt')(grunt, {
useminPrepare: 'grunt-usemin',
ngtemplates: 'grunt-angular-templates',
cdnify: 'grunt-google-cdn'
});
// Configurable paths for the application
var appConfig = {
app: require('./bower.json').appPath || 'app',
dist: 'dist'
};
and this
grunt.registerTask('serve', 'Compile then start a connect web server', function (target) {
if (target === 'dist') {
return grunt.task.run(['build', 'connect:dist:keepalive']);
}
grunt.task.run([
'clean:server',
'wiredep',
'concurrent:server',
'autoprefixer:server',
'configureProxies:server',
'connect:livereload',
'watch'
]);
});
Appreciate all tips on how to install this plugin and configure it further on if that is necessary.