Template doesn't work
Closed this issue · 2 comments
ihorml commented
Running "processhtml:prod" (processhtml) task
Warning: undefined is not a function Use --force to continue.
Aborted due to warnings.
html file:
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body ng-app="app">
<!-- build:template
content
/build -->
<div ng-controller="ctrl as ctrl">
{{ ctrl.test || 'default value' }}
</div>
</body>
</html>
Gruntfile:
function Grunt(grunt) {
require('time-grunt')(grunt);
require('load-grunt-config')(grunt, {
jitGrunt: true
});
var config = {
'app': 'app/',
'dist': 'dist/',
};
grunt.initConfig({
'processhtml': {
prod: {
files: [{
'dist/index.html': ['app/index.html']
}]
}
}
});
grunt.registerTask('dev', [
'processhtml:prod'
]);
}
module.exports = Grunt;
dciccale commented
i did copy paste from what you posted, tried it and it works. could you try that example?
dciccale commented
re-open the issue if you come up with something
thanks