c0f5fcca69
Instead of mirroring the browser's viewport, as if we had a camera over the browser, the entire DOM is now sent in the frame. This means that the CLI itself can scroll without having to wait for updates from the webextension screenshotter.
35 lines
826 B
JavaScript
35 lines
826 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({
|
|
DEVELOPMENT: JSON.stringify(true),
|
|
TEST: JSON.stringify(false),
|
|
// TODO: For production use a different webpack.config.js
|
|
PRODUCTION: JSON.stringify(false)
|
|
}),
|
|
new CopyWebpackPlugin([
|
|
{ from: 'assets', to: 'dist/assets' },
|
|
{ from: 'manifest.json', to: 'dist/' },
|
|
{ from: '.web-extension-id', to: 'dist/' },
|
|
])
|
|
]
|
|
};
|