pinafore/webpack/server.config.js
Nolan Lawson 098a20db49
feat: add full emoji picker using emoji-mart (#836)
* feat: add full emoji picker using emoji-mart

Fixes #4

* use a sailboat as the default emoji in the emoji picker

* fix tests

* fix lint
2018-12-18 00:43:51 -08:00

33 lines
695 B
JavaScript

const config = require('sapper/config/webpack.js')
const pkg = require('../package.json')
const { mode, dev, resolve } = require('./shared.config')
module.exports = {
entry: config.server.entry(),
output: config.server.output(),
target: 'node',
resolve,
externals: Object.keys(pkg.dependencies),
module: {
rules: [
{
test: /\.html$/,
exclude: /node_modules/,
use: {
loader: 'svelte-loader',
options: {
css: false,
store: true,
generate: 'ssr',
dev
}
}
}
]
},
mode,
performance: {
hints: false // it doesn't matter if server.js is large
}
}