hand-it
Version:
Easily add hand gestures to your react app
44 lines • 883 B
JavaScript
module.exports = {
entry: [
'./src/index.js'
],
module: {
rules: [
{
test: /\.(js|jsx)$/,
exclude: /node_modules/,
use: ['babel-loader']
},
{
test: /(\.css$)/,
use: ['style-loader', 'css-loader']
}
]
},
externals: {
react: {
root: 'React',
commonjs2: 'react',
commonjs: 'react',
amd: 'react'
},
'react-dom': {
root: 'ReactDOM',
commonjs2: 'react-dom',
commonjs: 'react-dom',
amd: 'react-dom'
}
},
resolve: {
extensions: ['*', '.js', '.jsx']
},
output: {
path: __dirname + '/build',
publicPath: '/',
filename: 'index.js',
libraryTarget: 'commonjs2'
},
devServer: {
contentBase: './build'
}
};