7117eb9965
In the endless struggle to squash a Travis-specific bug, we now have screenshots. Currently the screenshots are of the custom block font state, so you can't read the text. But I'm planning on changing the default state of the page to use a normal font - such that the frame builder needs to toggle the block font on to build a frame. This will make it more likely that screenshots will contain actual text.
34 lines
791 B
JavaScript
34 lines
791 B
JavaScript
const webpack = require('webpack');
|
|
const path = require('path');
|
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
|
|
|
module.exports = {
|
|
target: 'node',
|
|
entry: {
|
|
content: './content.js',
|
|
background: './background.js'
|
|
},
|
|
output: {
|
|
path: __dirname,
|
|
filename: 'dist/[name].js',
|
|
},
|
|
resolve: {
|
|
modules: [
|
|
path.resolve(__dirname, './src'),
|
|
'node_modules'
|
|
]
|
|
},
|
|
plugins: [
|
|
new webpack.DefinePlugin({
|
|
// TODO: For production use a different webpack.config.js
|
|
DEVELOPMENT: JSON.stringify(true),
|
|
PRODUCTION: JSON.stringify(false)
|
|
}),
|
|
new CopyWebpackPlugin([
|
|
{ from: 'assets', to: 'dist/assets' },
|
|
{ from: 'manifest.json', to: 'dist/' },
|
|
{ from: '.web-extension-id', to: 'dist/' },
|
|
])
|
|
]
|
|
};
|