mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
23 lines
451 B
JavaScript
23 lines
451 B
JavaScript
'use strict';
|
|
|
|
const path = require('path');
|
|
|
|
module.exports = {
|
|
entry: path.resolve(__dirname, 'src/index.js'),
|
|
output: {
|
|
path: path.resolve(__dirname, 'assets'),
|
|
filename: 'bundle.js'
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.js$/,
|
|
exclude: /node_modules/,
|
|
use: {
|
|
loader: 'babel-loader'
|
|
}
|
|
}
|
|
]
|
|
}
|
|
};
|