-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make it work with assets-webpack-plugin #31
Comments
Was looking through the plugin. How exactly would this plugin work with assets-webpack-plugin ? The json that is emitted would contain the CDN urls for the libraries? |
yeah, same as I have no idea if there is something to do, maybe just a unit test would be enough? |
Hmm. So for the following webpack config, {
context: path.resolve(__dirname, './fixtures/app'),
output: {
publicPath: '',
path: path.resolve(__dirname, './fixtures/output/assets-webpack-plugin')
},
entry: {
app: './single.js'
},
plugins: [
new AssetsPlugin({
filename: 'assets.json',
useCompilerPath: true
}),
new DynamicCdnWebpackPlugin()
]
} and import React from 'react' The JSON file that is generated contains the following. {
"app": {
"js": "app.js"
}
} This kinda looks like the intended behaviour, but that means |
but the output, will not include |
Yes. I got that. But like I said
This becomes an non-issue. |
Does it? 🤔 If |
https://github.com/kossnocorp/assets-webpack-plugin
The text was updated successfully, but these errors were encountered: