search

Home  >  Q&A  >  body text

angular.js - angularjs route jump problem after webpack build

Using webpack es6 angular1.6, the project uses a route like http://xx.xx.xx.xx/editor/m/new. Such a route can be accessed normally in the dev environment, but after building As soon as this state is accessed on the entry page, 404 will appear. Didn't webpack build the routing-related content together?

高洛峰高洛峰2859 days ago605

reply all(1)I'll reply

  • ringa_lee

    ringa_lee2017-05-15 17:15:46

    Already solved, use hashHistory

    reply
    0
  • Cancelreply