Last active
July 7, 2020 06:11
-
-
Save sijeesh-02/71dc7af4277ff9472caa64d6be77c732 to your computer and use it in GitHub Desktop.
Webpack trial project, basic config.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const path = require("path"); | |
module.exports = { | |
entry: "./src/ui/index.js", | |
// externals to expose script included jQuery lib | |
externals: { | |
jquery: "jQuery", | |
}, | |
output: { | |
path: path.resolve(__dirname, "dist/ui"), | |
// use this name in html file | |
filename: "bundle.js", | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment