static-cms/packages/netlify-cms/webpack.config.js

28 lines
622 B
JavaScript
Raw Normal View History

const path = require('path');
const coreWebpackConfig = require('../netlify-cms-core/webpack.config.js');
2018-07-23 23:40:48 -04:00
module.exports = [
{
...coreWebpackConfig,
context: path.join(__dirname, 'src'),
entry: './index.js',
},
/**
* Output the same script a second time, but named `cms.js`, and with a
* deprecation notice.
*/
{
...coreWebpackConfig,
context: path.join(__dirname, 'src'),
entry: [
...coreWebpackConfig.entry,
path.join(__dirname, 'scripts/deprecate-old-dist.js'),
],
output: {
...coreWebpackConfig.output,
filename: 'dist/cms.js',
},
},
];