35 lines
876 B
JavaScript
Raw Normal View History

2018-07-17 19:13:52 -04:00
const path = require('path');
const FriendlyErrorsWebpackPlugin = require('friendly-errors-webpack-plugin');
const baseConfig = require('../../webpack.config.js');
module.exports = {
...baseConfig,
context: path.join(__dirname, 'src'),
entry: './index.js',
module: {
2018-07-23 12:30:15 -04:00
rules: [
...baseConfig.module.rules,
{
test: /\.css$/,
include: [/redux-notifications/],
use: ['to-string-loader', 'css-loader'],
},
],
2018-07-17 19:13:52 -04:00
},
devServer: {
contentBase: './example',
watchContentBase: true,
quiet: true,
host: 'localhost',
port: 8080,
},
plugins: [
2018-07-23 12:30:15 -04:00
...baseConfig.plugins.filter(plugin => !plugin instanceof FriendlyErrorsWebpackPlugin),
2018-07-17 19:13:52 -04:00
new FriendlyErrorsWebpackPlugin({
compilationSuccessInfo: {
messages: ['Netlify CMS is now running at http://localhost:8080'],
},
}),
],
};