browsh/webext/webpack.config.js
2018-01-12 21:58:32 +08:00

27 lines
538 B
JavaScript

const webpack = require('webpack');
const path = require('path');
module.exports = {
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)
})
]
};