-
Notifications
You must be signed in to change notification settings - Fork 12k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not able to set outDir to "../www/" #2006
Comments
Upgrade your node to 6.5+, your version is no longer supported. Having the build output to folder above the project root is not ideal and should not be supported. You can solve your issue with a copy or move command, or by using an npm script. |
thanks for you answer. I will solve it with a npm script in the meanwhile. Why having the build output above the project root is not ideal? |
@robertbaker I am also interested in thoughts on why this "should not be supported". In our projects we often have a client project parallel to a server project - server project might be another Node project or might be 0% JavaScript. A fully flexible Outdir would make it easy for the client project to emit the bundled output into the server project's web asset directory. Lack that we use an extra NPM script (with a file copying utility), as you described. But it feels superflous, like it is papering over an arbitrary limitation. |
What is also very interesting is the fact, that when I copy the dist folder manually one level higher to the root of my project and name it www (so that cordova recognizes the folder as a cordova project) this folder is deleted the next time I'm build the project. |
Same problem here: We embed an angular-cli in our Spring boot application: Source: src/project/src/main/angular/ So, I am looking forward for such a feature. Of course you can copy the dist directory with npm, but what if you run ng in watch mode (One day)? Run another script that brute copies the dist directory every time it changes? |
@crebuh ng build -prod --output-path ../resources/public works for me. No .ember-cli file, outDir is "dist" (Dummy value) with 1.0.0-beta.11-webpack.9-4 |
Note: The specific outcome of this issue has changed as tested in recent versions (1.0.0-beta.15). No ember related artifacts caused by it. Also, as mostly mentioned in #2230:
|
Facing the issue, it seems that the bug is in ember-cli/conception
|
I tried in .angular-cli.json is it still a bug? Edit I just removed the |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Linux, Ubuntu 14.04.
ng --version
. If there's nothing outputted, please runin a Terminal:
node --version
and paste the result here:angular-cli: 1.0.0-beta.11-webpack.2
node: 4.4.4
os: linux x64
do on your code? etc.
Update apps.outDir to "../www/" in angular.cli.json and execute ng build prod
As described above I'm trying to update the output directory when building the app. I have wrapped a cordova project around the ng2-application so it would be nice to build inside the www-folder (which worked before upgrading to webpack).
Now the build is always played into a dist folder. In addition the www-folder is always deleted, when I start ng build.
Any advice?
edit:
I found an entry in the .ember-cli-file called "output-path" and also set it to "../www/" without success ..
The text was updated successfully, but these errors were encountered: