Skip to content

Commit

Permalink
chore: use babel-loader also for showcase
Browse files Browse the repository at this point in the history
  • Loading branch information
Jinjin Li committed Jun 30, 2020
1 parent ba0f5d7 commit c083302
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/bundle.js

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions webpack.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,20 @@ module.exports = {
filename: 'bundle.js',
path: path.resolve(__dirname, output),
},
module: {
rules: [
{
test: /\.m?js$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader',
options: {
presets: ['@babel/preset-env']
}
}
}
]
},
plugins: [
new CopyPlugin([
{ from: path.resolve(__dirname, 'src/index.html'), to: path.resolve(__dirname, output) },
Expand Down

0 comments on commit c083302

Please sign in to comment.