【发布时间】:2019-09-05 01:06:06
【问题描述】:
我正在 Visual Studio 中构建一个 Vue 应用程序,运行构建后,我得到了错误:The command npm run build exited with code 1。我注意到它发生在我的 Vue 应用程序的后期构建中,代码行如下:
<Exec WorkingDirectory="$(OutDir)" Command="$(PostBuildEvent)"/>
这是我的整个后期构建脚本:
<PropertyGroup>
<PostBuildEventDependsOn></PostBuildEventDependsOn>
</PropertyGroup>
<Target
Name="PostBuildEvent"
Condition="'$(PostBuildEvent)' != '' and ('$(RunPostBuildEvent)' != 'OnOutputUpdated' or '$(_AssemblyTimestampBeforeCompile)' != '$(_AssemblyTimestampAfterCompile)')"
DependsOnTargets="$(PostBuildEventDependsOn)">
<Exec WorkingDirectory="$(OutDir)" Command="$(PostBuildEvent)"/>
我希望将一个包 javascript 文件放在我的 Vue 应用程序的“dist”文件夹中。谢谢您的帮助。
【问题讨论】:
标签: javascript html vue.js webpack vuejs2