add netlify-cms (main) package
This commit is contained in:
23
packages/netlify-cms/webpack.config.js
Normal file
23
packages/netlify-cms/webpack.config.js
Normal file
@ -0,0 +1,23 @@
|
||||
const FriendlyErrorsWebpackPlugin = require('friendly-errors-webpack-plugin');
|
||||
const { getConfig, plugins } = require('../../scripts/webpack.js');
|
||||
|
||||
module.exports = {
|
||||
...getConfig(),
|
||||
plugins: [
|
||||
...Object.entries(plugins)
|
||||
.filter(([ key ]) => key !== 'friendlyErrors')
|
||||
.map(([ _, plugin ]) => plugin()),
|
||||
new FriendlyErrorsWebpackPlugin({
|
||||
compilationSuccessInfo: {
|
||||
messages: ['Netlify CMS is now running at http://localhost:8080'],
|
||||
},
|
||||
}),
|
||||
],
|
||||
devServer: {
|
||||
contentBase: './example',
|
||||
watchContentBase: true,
|
||||
quiet: true,
|
||||
host: 'localhost',
|
||||
port: 8080,
|
||||
},
|
||||
};
|
Reference in New Issue
Block a user