Assets文件夹在NativeScript Android Build中不包括HTML文件

时间:2018-12-13 14:35:37

标签: android nativescript angular2-nativescript nativescript-angular nativescript-telerik-ui

我正在尝试显示带有引用的JS和CSS和PNG图像的本地html文件。我将文件放入Android的NativeScript x Angular应用程序的资产文件夹中。当我运行tns时,运行android --bundle并构建应用程序-资产文件夹不包含html。文件夹结构来自资产> index.html(而index.html引用其他文件)。

我是否需要包含html文件的特定位置或方式,以便它们包含在构建中?

1 个答案:

答案 0 :(得分:2)

您必须在 private void oldPanel_MouseDown(object sender, MouseEventArgs e) { m_nStartDragPoint = new Point(e.X, e.Y); } private void oldPanel_MouseMove(object sender, MouseEventArgs e) { if (System.Math.Abs(e.X - m_nStartDragPoint.X) > 10 || System.Math.Abs(e.Y - m_nStartDragPoint.Y) > 10) { oldPanel.DoDragDrop(oldPanel, DragDropEffects.Copy); } } private void oldPanel_Click(object sender, EventArgs e) { // do some stuff - not called currently } 中更新CopyWebpackPlugin才能包含资产文件夹

webpack.config.js