Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vs code create folder automatically with (dist) name

In My VS code after each modifies create a folder with name dist in that directory, for example after in change something in folder foo/index.js and save that changes, automatically 2 files appear in folder foo/ with name foo/index.dev.js and foo/index.prod.js

how can I stop this ?

like image 451
hamidreza nikoonia Avatar asked Jun 03 '20 18:06

hamidreza nikoonia


People also ask

How do I create a .VS Code folder?

Adding folders#The File > Add Folder to Workspace command brings up an Open Folder dialog to select the new folder. Once a root folder is added, the Explorer will show the new folder as a root in the File Explorer. You can right-click on any of the root folders and use the context menu to add or remove folders.

How do I set File associations in Visual Studio Code?

Open your settings (CMD + , on a Mac or CTRL + , on Windows) and enter a file association. We can do this with the settings UI or the settings JSON, both are options to edit your settings. Then enter a file association for the .


1 Answers

Solution

This Issue happens maybe you install Sass/Less/Typescript/Jade/Pug Compile Hero Plugin in your VS code and if you use this plugin, you can disable that for avoiding compile on save file and create index.dev.js and index.prod.js file

enter image description here

like image 138
hamidreza nikoonia Avatar answered Oct 04 '22 04:10

hamidreza nikoonia