mirror of
https://github.com/nolanlawson/pinafore
synced 2024-12-11 17:59:20 +01:00
098a20db49
* 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
21 lines
593 B
JavaScript
21 lines
593 B
JavaScript
const config = require('sapper/config/webpack.js')
|
|
const terser = require('./terser.config')
|
|
const webpack = require('webpack')
|
|
const { mode, dev, resolve } = require('./shared.config')
|
|
|
|
module.exports = {
|
|
entry: config.serviceworker.entry(),
|
|
output: config.serviceworker.output(),
|
|
resolve,
|
|
mode,
|
|
devtool: dev ? 'inline-source-map' : 'source-map',
|
|
plugins: [
|
|
new webpack.DefinePlugin({
|
|
'process.browser': true,
|
|
'process.env.NODE_ENV': JSON.stringify(mode),
|
|
'process.env.SAPPER_TIMESTAMP': process.env.SAPPER_TIMESTAMP || Date.now()
|
|
}),
|
|
terser()
|
|
]
|
|
}
|