Questions tagged [grunt-includes]

A grunt task for including a file within another file (think php includes).

A grunt task for including a file within another file (think php includes).

https://github.com/vanetix/grunt-includes

5 questions
5
votes
1 answer

Automatic reference of local *.js and *.css files into index.html with grunt

I intend to develop an angularJS client where I will use angular components. This will lead to multiple .js/.css files. In order to avoid manually referencing each newly added js/css file I intend to use a grunt-include-source task. The problem is…
Lucian Bredean
  • 803
  • 1
  • 10
  • 21
1
vote
0 answers

include the mentioned css files from Gruntfile.js

Read and include the mentioned css,js files from Gruntfile.js. I tried to using the grunt-include-source plugin but not working index.html <---include the mentioned css files…
0
votes
1 answer

grunt-include-replace adding a folder when it compiles

I'm about at my wits end trying to figure this out. I have the include replace pulling from a src folder and compiling into a dist folder. It is doing that, however, it's adding a src folder into the dist folder and putting the html file into that.…
0
votes
0 answers

Grunt include-replace string unexpexted token error / special characters in string

When I'm adding a string to the grunt-include-replace includes like shown below, I get an 'unexpected token error' in the console and the html file doesn't compile. @@include('components/navigation.html', { "list-elements": "
  • herrh
    • 1,328
    • 1
    • 16
    • 33
  • 0
    votes
    1 answer

    Use Grunt for basic includes

    I have an application that has 3 pages which I would like to be self-contained. In the interest of DRY code, I would like to do "includes" for the header and footer content. I have looked at the docs and examples for grunt-html-build and I'm somehow…
    Greg Pettit
    • 10,749
    • 5
    • 53
    • 72