javascript - Grunt - plugin folder disapper after build dist -
I'm new to Yemen, Grunt and Bower, and of course I have some difficulty in making the distribution.
I added a external plugin to scalphold a webpad, added an external plugin (not on the verge, there was no package for that plugin, so I copied the plug-in folder and my Index.html reference in the index.html)
jshint errors about that external plugin (missing semicolon Etc. ... little stuff), so just me
ghurghur - force
the construction of my district.
In the distinction, the external plugin folders and files were missing, so the folder that was deleted in the building process (but there were all the references to the files in the index.html file).
Then
with the distant service: dist
I was in my distant browser but at this point without the plugin I copied the plugin folder to the correct location of the Deliver folder, reloaded the page, and the plugin was working. Then this process was killed, and then I went again
grunt serve: dist
After this command, the plugin folder (which I manually Just copied) simply disappeared, so I realize that copying and pasting things are not the right way to work.
How can I tell bitter (or vertebra) to leave that folder (inside the JS folder) in the same place, try not to compress files, ignore JSI verification with JSIT , And not to remove it?
What if I want to add a new folder in the root folder (called for example Jason)? When will the construction of a distribution be removed? Is there a place where I can tell the disturbance about how to include / ignore the folder?
Thank you
---- Edit ----
This is my "copy" function in Gruntfile.js
Copy to: {dist: {files: [[expand: true, dot: true, cwd: '<% = config.app%> & gt; , Dest: '& lt;% = config.dist% & gt;', src: ['* *. {Ico, png, txt} ',' Pictures / {, * /} *. Webp ',' {, * /} * .html ',' styles / fonts / {, * /} *. * ']}, {Src:' node_modules / apache-server-configs / dist / .htaccess', dest : '& Lt;% = config.dist% & Gt; / .htaccess '}]}, genre: {expanded: true, dot: true, cwd:' <% = config.app% & gt; / Styles', dest: '.mp / styles'', src: '{, * /} *. Css'}}This is an extraction in a 'output'
gruntfile .js
:module.exports = function (cancer) {To: {dist: {files: [[detailed: true, dot: true, cwd: '& lt; % = Yeoman.app%>, 'dest:' & lt;% = yeoman.dist% & gt; ', src: [//'*. {ico,png,txt}', '*. {Txt} ',' .htaccess ',' * .html ',' * .appcache ',' views / {, * /} *. Html ',' images / {, * /} *. {Webp} ',' Icon / ** / *. {Ico, png} ',' script / i18n / {, * /} *. Js ',' i18n / {, * /} *. Json ',]}, {expanded: true, Cwd:' .tmp / images ', dest:' <% = yeoman.dist% & gt; / Images ', src: [' generate / * ']}, {expand: true, cwd:' bower_components / bootstrap / dist ', src:' fonts / * ', dest:' <% = yeoman.dist % & Gt; '}, {Expansion: true, cwd:' bower_components / open-sans-fontface ', src:' fonts / ** / * ', destination:' <% = yeoman.dist% & gt; / Styles '}, {extension: true, cwd:' bower_components / font-awesome ', src:' fonts / * ', dest:' <% = yeoman.dist% & gt; }]},}, ... grunt.registerTask ('build', ['clean: dist', ... 'copy: dist', ...]); Grunt.registerTask ('Default', ['Build',]); };
Please , read (this is a five minute work ...: -).
Comments
Post a Comment