piotrwitek / react-redux-typescript-jspm-starter

Futuristic, bundle-free, development environment for building Component-Driven SPA with React, Redux and TypeScript - powered by JSPM (SystemJS & Rollup with tree-shaking)
https://piotrwitek.github.io/react-redux-typescript-jspm-starter/
MIT License
231 stars 43 forks source link

Build version uses jspm_packages folder #42

Closed maxali closed 7 years ago

maxali commented 7 years ago

Production build with npm run build:app loads modules from jsmp_packages folder. I run npm run init and npm run build:app.

image

This is the jspm.config.js i am using.

piotrwitek commented 7 years ago

I see that browser cannot find vendor.prod.bundle. This is a bundle that contain all your dependencies, this is why it is looking for jspm_packages as a resolution algorithm

I think if you build with npm run build as opposed to only building your app source code, it should resolve your problem.

Please take a look at docs: https://github.com/piotrwitek/react-redux-typescript-starter-kit#production-bundling-dist-folder

piotrwitek commented 7 years ago

@maxali should be closed?

maxali commented 7 years ago

@piotrwitek you are right. I had to run npm run build.

Sorry for the late reply.