PatrickJS-starter icon indicating copy to clipboard operation
PatrickJS-starter copied to clipboard

dist is notworking

Open gmchaturvedi1 opened this issue 10 years ago • 4 comments

hello friend i am new to webpack and angular2 can someone help for production because when i run command npm run build and copy index.html and those file in one folde is notworing but my js file is not working

gmchaturvedi1 avatar Dec 20 '15 12:12 gmchaturvedi1

I'm sure there are a million ways to fix this. I got it working by changing the webpack config to output the build files into /src/public/ instead of /public/ and then deploying out of /src/public

OverclockedTim avatar Dec 20 '15 19:12 OverclockedTim

I'm working on a new build config to make this more clear

PatrickJS avatar Dec 22 '15 20:12 PatrickJS

I tried copying __build__ folder and contents of /src/public/ into a separate folder for production run from a single folder. Most PaaS/Cloud deploy CLI require single folder as source for deploy. This needs to be part of build:prod within the starter, rather than an external hack (smiles).

manavsehgal avatar Dec 28 '15 05:12 manavsehgal

done via https://github.com/AngularClass/angular2-webpack-starter/compare/cf4b3f2bf4fc74de37aa6af05a891d29c7c2d0a8...master

PatrickJS avatar Jan 03 '16 02:01 PatrickJS