register extensions for development

This commit is contained in:
Shawn Erquhart
2018-07-24 00:27:49 -04:00
parent 27d13a73b6
commit 0e25b76bb7
25 changed files with 146 additions and 75 deletions

View File

@ -1,23 +1,3 @@
const FriendlyErrorsWebpackPlugin = require('friendly-errors-webpack-plugin');
const { getConfig, plugins } = require('../../scripts/webpack.js');
const { getConfig } = 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,
},
};
module.exports = getConfig();