How can we map paths with node.js connect -


How can we decide on another path by using MIDWAR connectivity to nodes?

For example, fileB .

is requested, then I want to reply to my server with fileA (inside of grunt-Contrib-connect )

I have a stupid method, but this is a method! Copy

 : {"mount-server": {files: [[expand: true, dot: true, cwd: '& lt;% = yeoman.app% & gt; , Dest: './.mount-server/search/mobileqq/', src: ['** / **']}]}} Connect: {option: {port: 80, // it '0.0.0.0 Change the host name to use the server from: null}, livereload: {options: {middleware: function (connect, option) {returns [lrSnippet, mountfolder (connect, '.tmp'), mountfolder , "./mount-server /"]]; }}}} Grunt.registerTask ('readyServer', ["clean: mount-server", "copy: mount-server"]); Grunt.registerTask ('server', function (target) {if (target === 'dist') {return grunt.task.run (['build', 'open', 'connect: dist: keepalive']); } Grunt.task.run (['Concurrent: Server', 'Prepare Server', 'Connect: LiveLoad', 'Open: Server', 'Watch']););   

Just copy your file and create another mount folder!

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -