webpack-externals Questions
3
Solved
I'd like to use react.min.js from a CDN in production (e.g. https://unpkg.com/[email protected]/dist/react.min.js)
What is the best way to get Webpack to transform my import React from 'react...
Melonie asked 22/7, 2015 at 23:37
1
Solved
I have defined externals in webpack.config for material-ui
module.exports = [{
entry: ...
output:...
externals: {
react: {
commonjs: "react",
commonjs2: "react"
},
"material-ui": {
commo...
Garin asked 24/1, 2017 at 8:26
1
© 2022 - 2024 — McMap. All rights reserved.