Skip to content

Commit 80b6ffa

Browse files
committed
Track webpack config to make npm build the right thing
1 parent bcc6afd commit 80b6ffa

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

webpack.config.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
const path = require('path');
2+
3+
module.exports = {
4+
entry: './src/hf-exporter.js',
5+
output: {
6+
filename: 'bundle.js',
7+
path: path.resolve(__dirname, 'dist'),
8+
},
9+
module: {
10+
rules: [
11+
{
12+
test: /\.js$/,
13+
exclude: /node_modules/,
14+
use: {
15+
loader: 'babel-loader',
16+
options: {
17+
presets: ['@babel/preset-env']
18+
}
19+
}
20+
}
21+
]
22+
},
23+
mode: 'production'
24+
};

0 commit comments

Comments
 (0)