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.
30 lines
485 B
JavaScript
30 lines
485 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: {
|
|
modules: [
|
|
path.resolve('./src'),
|
|
'node_modules',
|
|
],
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.js$/,
|
|
exclude: /node_modules/,
|
|
loader: 'babel-loader',
|
|
},
|
|
],
|
|
},
|
|
plugins: [],
|
|
};
|