DEV Community

Ian
Ian

Posted on

package.json copy file in Windows

Hi,
I'm currently trying to setup a boilerplate for my web projects.
But somehow I can't figure out, how to write a script in my package.json that copies a file from the node modules folder to my public folder.

Windows probably has problems with the slash?
I'd be great if the solution could be compatible to macOS and windows since I use both.

"copyVue": "cp node_modules/vue/dist/vue.js public/app/js/vue.js"

Thank you!

Top comments (0)