Skip to content

ng-annotate-loader + babel-loader not working together #42

@rmemon

Description

@rmemon

Hi,
Here is I am facing issue when i am using ng-annotate-loader and babel-loader together,

let me know if i am missing something

Thanks in advance.

var webpack = require('webpack');
var ExtractTextPlugin = require('extract-text-webpack-plugin');

module.exports = {
    entry: {
        loginApp: './public/modules/login/loginApp.js',
        docListApp: './public/modules/docList/ncApp.js',
        signingRoomApp: './public/modules/signingRoom/ncAppSV.js',
    },
    output: {
        filename: 'dist/[name].bundle.js',
    },
    module: {
        loaders: [{
                test: /\.js$/,
                exclude: /node_modules/,
                use: [                    
                    {
                        loader: 'ng-annotate-loader',
                        options: {
                            add: false,
                            map: false,
                        },
                    },
                    { loader: 'babel-loader', }
                ],                
            },            
            {
                test: /\.html$/,
                loader: 'html-loader',
            },
            {
                test: /\.css$/,
                use: ExtractTextPlugin.extract({
                    fallback: 'style-loader',
                    use: 'css-loader',
                }),
            },
            {
                test: /\.(png|woff|woff2|eot|ttf|svg)$/,
                loader: 'file-loader',
                options: {
                    name: '[path][name].[ext]',
                },
            },
        ],
    },
    plugins: [
        new ExtractTextPlugin({
            filename: 'dist/[name].bundle.css',
        }),        
    ],
    devtool: 'source-map',
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions