mirror of
https://github.com/kingomarnajjar/gatsby-starter-netlify-cms.git
synced 2026-07-25 22:27:24 +10:00
29 lines
561 B
JavaScript
29 lines
561 B
JavaScript
// This webpack config is used to compile the JS for the CMS
|
|
const path = require('path');
|
|
|
|
module.exports = {
|
|
entry: './cms.js',
|
|
output: {
|
|
filename: 'cms.bundle.js',
|
|
path: path.resolve(__dirname, '../static/admin/')
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.js$/,
|
|
exclude: /node_modules/,
|
|
use: {
|
|
loader: "babel-loader",
|
|
options: {
|
|
presets: ["babel-preset-env", "babel-preset-react"]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
"site": "../src/"
|
|
}
|
|
}
|
|
};
|