I have a Play application. The UI of the application is in Angular. I have created a folder ui which is the top level Angular directory.
build.sbt
`ui-dev-build` := {
implicit val UIroot = baseDirectory.value / "ui"
if (runDevBuild != Success) throw new Exception("Oops! UI Build crashed.")
}
def runDevBuild(implicit dir: File): Int = ifUiInstalled(runScript("npm run build"))
package.json
"build": "ng build --output-path ../public/ui",
When the Angular application is build, I transfer the output to the public folder of the Play framework. From there, Play transfers the contacts of the public folder to target folder for deployment. This works fine.
I want to use ng-ace2-editor in my application - https://github.com/fxmontigny/ng2-ace-editor. I have added it in package.json - "ng2-ace-editor": "0.3.9" and I can see that ng2-ace-editor directory is present in node_modules.
I can't understand how to make my application find mode-html.js. The file is present at location "./node_modules/ace-builds/src-min/mode-html.js. I have added this path in "script":[] of package.json but I still get the error.
I have a
Play
application. TheUI
of the application is inAngular
. I have created a folderui
which is the top levelAngular
directory.When the
Angular
application is build, I transfer the output to thepublic
folder of thePlay
framework. From there,Play
transfers the contacts of thepublic
folder totarget
folder for deployment. This works fine.I want to use
ng-ace2-editor
in my application - https://github.com/fxmontigny/ng2-ace-editor. I have added it inpackage.json
-"ng2-ace-editor": "0.3.9"
and I can see thatng2-ace-editor
directory is present innode_modules
.When I run the application, I get error
I can't understand how to make my application find
mode-html.js
. The file is present at location"./node_modules/ace-builds/src-min/mode-html.js
. I have added this path in"script":[]
ofpackage.json
but I still get the error.