These are chat archives for AngularClass/angular2-webpack-starter

Jun 2016
Jun 01 2016 10:54
Hey, I'm trying to load a babylonjs .babylon file that I've copied into my local assests folder. The resource is trying to load as 'file.babylon.manifest?23423425' and obviously coming back with a 404 - not found? Why is that manifest part being added to the end? Any help would be appreciated. Thanks
Jun 01 2016 12:18
I found a solution with the BabylonJS SceneLoader (splitting up the path and filename)
Jun 01 2016 13:56
I’ve managed to bundle my code into a bundle.js but I would also like to be able to debug it properly, by putting breakpoints and stuffs directly within the typescript files. Right know I’ve got the different js files of the project, but not the ts ones.
How could I kind of “sourcemap the code twice”?
  • First: bundle.js -> all the js (done)
  • Second: all the js -> all the ts (not done yet)
Currently I’ve got this webpack.config.js:
module.exports = {
    entry: {
        app: ['./vendor.ts', './app/boot.ts', './assets/style/style.css']
        //vendor: './vendor.ts'
    output: {
        path: path.resolve(__dirname, "dist"),
        publicPath: '/assets/',
        filename: 'bundle.js',
        sourceMapFilename: ""
    resolve: {
        extensions: ['', '.js', '.ts']
    devtool: '#source-map',
    module: {
        loaders: [
            { test: /\.ts$/, loader: 'ts-loader' },
            { test: /\.html$/, loader: 'raw-loader' },
            { test: /\.less$/, loader: 'style-loader!css-raw-loader!less-loader' },
            { test: /\.css$/, loader: 'style-loader!css-raw-loader' }
Fábio Antunes
Jun 01 2016 16:12
Hey guys in this starter pack there's a service for setting the app state is there anything about the best practices of using that service and where can I find more info?