Update webpack config for v2

pull/130/head
Glen Cheney 7 years ago
parent 07fd6cf3a4
commit 892b9329a0

@ -1,3 +1,5 @@
{
"presets": ["es2015"]
"presets": [
["es2015", { "modules": false }]
]
}

@ -534,14 +534,11 @@ h3:hover > a {
margin-right: -8px; }
.row--centered {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center; }

4277
dist/shuffle.js vendored

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -11,14 +11,17 @@ module.exports = {
libraryTarget: 'umd',
},
resolve: {
root: [path.resolve('./src')],
modules: [
path.resolve('./src'),
'node_modules',
],
},
module: {
loaders: [
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel',
loader: 'babel-loader',
},
],
},

@ -12,23 +12,27 @@ module.exports = {
libraryTarget: 'umd',
},
resolve: {
root: [path.resolve('./src')],
modules: [
path.resolve('./src'),
'node_modules',
],
},
module: {
loaders: [
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel',
loader: 'babel-loader',
},
],
},
plugins: [
new webpack.optimize.DedupePlugin(),
new webpack.optimize.UglifyJsPlugin({
sourceMap: true,
comments: false,
screw_ie8: true,
compress: {
warnings: true,
drop_console: true,
},
mangle: true,

Loading…
Cancel
Save