add netlify-cms (main) package

This commit is contained in:
Shawn Erquhart
2018-07-23 23:40:48 -04:00
parent 19f484eeda
commit 27d13a73b6
18 changed files with 115 additions and 70 deletions

View File

@ -1,6 +1,5 @@
const path = require('path');
const FriendlyErrorsWebpackPlugin = require('friendly-errors-webpack-plugin');
const { getConfig, rules, plugins } = require('../../scripts/webpack.js');
const { getConfig, rules } = require('../../scripts/webpack.js');
module.exports = {
...getConfig(),
@ -27,22 +26,5 @@ module.exports = {
use: ['to-string-loader', 'css-loader'],
},
],
},
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,
},
}
};