File: webpack.config.js

package info (click to toggle)
node-react-audio-player 0.11.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 6,492 kB
  • sloc: makefile: 7; sh: 2
file content (33 lines) | stat: -rw-r--r-- 739 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
var path = require('path');

module.exports = {
    entry: './src/index.jsx',
    output: {
        path: path.resolve(__dirname, 'dist'),
        filename: 'bundle.js',
        libraryTarget: 'umd'
    },

     resolve: {
       modules: ['/usr/lib/nodejs', '/usr/share/nodejs'],
     },

     resolveLoader: {
       modules: ['/usr/lib/nodejs', '/usr/share/nodejs'],
     },

    module: {
        rules: [
            {
                test: /\.jsx$/,
                exclude: /(node_modules|bower_components)/,
                use: {
                    loader: 'babel-loader',
                    options: {
                        presets: ['react', 'es2015']
                    }
                }
            }
        ]
    }
}