$FileDir $\ $FileNameWithoutExtension $-compile.js: $FileDir $\ $FileNameWithoutExtension $-compile.js. $FilePathRelativeToProjectRoot $-out-file $FileDir $\ $FileNameWithoutExtension $-compile.js-source-maps-presets Env My settings are: This allows the compiled file and the original file in the same folder My goal is to compile this structure of JS To solve this constant nesting problem, you need to put the output paths to refresh in the Dist, the same as JS, there will be no such nested compilation. As a result, compiled files are nested like this. We want to put the compiled files are placed in the JS directory, so the arguments in the dist changed to JS. The dist directory is not necessarily the directory we want. The result of running the compilation is this. Output paths to refresh defaults to: dist\ $FileDirRelativeToProjectRoot $\ $FileNameWithoutExtension $.js:dist\$ Filedirrelativetoprojectroot$\ $FileNameWithoutExtension $.js.map bin folder, and click OK.Īrguments default is: $FilePathRelativeToProjectRoot $-out-dir Dist-source-maps-presets env To the project's Node_modules folder, locate the Babel file under the. Program if the global installation of BABEL-CLI, the default is good here. The setting here is very important, the online tutorial, basically did not on these three detailed introduction. (Some tutorials let the global installation Babel, in fact the new Babel is already integrated in the BABEL-CLI. some Babel libraries need to be installed. In this interface, there are three places to set, program,arguments, Output paths to refresh 03,the Babel is automatically compiled using Webstorm's own file watcher. On the right side of the sign open a new window, select Babel, in the middle of the picture will appear bebel.ĭouble-clicking the Babel will enter the Babel Settings screen. The path in the Webstorm: File-setting-tools-file Watcher, ![]() In the box on the right, select ECMASCRIPT6 BABELRC, you can implement more features.įile-setting-languages
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |