You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
442 B
JavaScript
27 lines
442 B
JavaScript
const path = require('path');
|
|
|
|
module.exports = {
|
|
name: 'build',
|
|
devtool: 'source-map',
|
|
entry: './src/index.js',
|
|
output: {
|
|
filename: 'shuffle.js',
|
|
path: './dist',
|
|
library: 'shuffle',
|
|
libraryTarget: 'umd',
|
|
},
|
|
resolve: {
|
|
root: [path.resolve('./src')],
|
|
},
|
|
module: {
|
|
loaders: [
|
|
{
|
|
test: /\.js$/,
|
|
exclude: /node_modules/,
|
|
loader: 'babel',
|
|
},
|
|
],
|
|
},
|
|
plugins: [],
|
|
};
|