Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Can i create/update ionic.bundle.js from ionic1 to ionic2/3?

$
0
0

@AlexandrJGalt wrote:

Hi!
Is there a way to update ionic.bundle.js from ionic1 to ionic2/3 or assemble new?
I understand that ionic2/3 have another flow and file structure, using webpack to assemble and serve the projects.
But we have legacy project with cordova and ionic 1.3.1, which is not installed and loading like ionic.bundle.js thru requirejs.config.
So usual upgrade tutorial is not exactly what we need.

Thank u in advance!

requirejs.config(
{
baseUrl: ‘’,
waitSeconds: 0,

paths: {
  'ionic': './lib/ionic/js/ionic.bundle',
  'app': './js/app',
  'routes': './js/routes',
  'controllers': './js/views/controllers',
  'components': './js/components/components',
  'services': './js/services/services',
  'filters': './js/filters/filters',
  'scripts': './js/index'
},

shim: {
  'ionic':{
    exports: 'angular'
  },
  'app': ['ionic','controllers','components','services'],
  'routes': ['ionic'],
  'controllers': ['ionic'],
  'components': ['ionic'],
  'services': ['ionic'],
  'filters': ['ionic'],
  'scripts': ['app']
},

deps: ['./js/appStart']

}
);

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>