FountainJS / generator-fountain-angular1

Yeoman 'fountain' generator to start a webapp with Angular 1
http://fountainjs.io
MIT License
95 stars 34 forks source link

webpack not copy partials html to dist folder #91

Open fromcouch opened 7 years ago

fromcouch commented 7 years ago

Description

After some hard work finally I decide distribute code to client. But first I want to try distribution: npm run serve:dist

Open browser and nothing apperas. I look console to see error

Error Message & Stack Trace

Surprisly I haven't html partials of project in dist folder.

screen shot 2017-07-17 at 00 43 12

vendor-3d79264….js:55858 Error: [$compile:tpload] Failed to load template: ./login/login.html (HTTP status: 404 Not Found) http://errors.angularjs.org/1.6.5/$compile/tpload?p0=.%2Flogin%2Flogin.html&p1=404&p2=Not%20Found

Config

Copy the content from .yo-rc.json:

{
  "generator-fountain-angular1": {
    "version": "1.0.0",
    "props": {
      "framework": "angular1",
      "modules": "webpack",
      "js": "babel",
      "ci": "",
      "css": "scss",
      "resolved": "/Users/victor/.nvm/versions/node/v7.5.0/lib/node_modules/generator-fountain-webapp/node_modules/generator-fountain-angular1/generators/app/index.js",
      "namespace": "fountain-angular1:app",
      "_": [],
      "sample": "techs",
      "router": "none"
    }
  }
}```

## Environment

Tell us which operating system you are using, as well as which versions of Node.js, npm, and yo. Run the following to get it quickly:

Node.js v7.5.0 darwin 16.6.0 yo: 2.0.0 npm: 5.0.3