barteksc / webpack-profiles

Profiles support for webpack module bundler
MIT License
2 stars 2 forks source link

Error: Each element of the loaders list must be an object or array #1

Open kayazinc opened 8 years ago

kayazinc commented 8 years ago

I got this error message while trying to incorporate webpack-profile.

any idea what i am missing? Thanks. Below are my config:

dev: {
        vars: {
            //section with variables passed to webpack.DefinePlugin
        },
        config: {
            devtool: 'inline-source-map',
            plugins: [
                new webpack.optimize.OccurenceOrderPlugin(),
                new webpack.HotModuleReplacementPlugin(),
                new webpack.NoErrorsPlugin(),
            ],
            module: {
                loaders: [{
                    test: /\.jsx?$/,
                    loaders: [
                        'react-hot',
                        'babel?presets[]=es2015,presets[]=react',
                    ],
                    exclude: /(node_modules|bower_components)/
                },
                {
                    test: /\.css?$/,
                    loader: 'style!css',
                    exclude: /node_modules/
                }]
            }
        }
    }
paolommj commented 7 years ago

you need an empty array in default conf