webpack.aboutwelcome.config.js (808B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this file, 3 * You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 const path = require("path"); 6 const config = require("../asrouter/webpack.base.config.js"); 7 const webpack = require("webpack"); 8 const absolute = relPath => path.join(__dirname, relPath); 9 const banner = ` 10 NOTE: This file is generated by webpack from aboutwelcome.jsx 11 using the npm bundle task. 12 `; 13 module.exports = Object.assign({}, config(), { 14 entry: absolute("content-src/aboutwelcome.jsx"), 15 output: { 16 path: absolute("content"), 17 filename: "aboutwelcome.bundle.js", 18 }, 19 externals: { 20 react: "React", 21 "react-dom": "ReactDOM", 22 }, 23 plugins: [new webpack.BannerPlugin(banner)], 24 });