-
Notifications
You must be signed in to change notification settings - Fork 27
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
New Asset(s) Do Not Gets Updated in Webpack Stats #11
Comments
do you mean the file names don't get updated if changed? what do you store with stats file? |
This happened — I used But when I use I'm dependent on the bundle generated by
Makes sense? |
I tried a bare bones webpack setup to check this. // src/1.js
const a = 'a';
// src/2.js
const b = 'b';
// src/index.js
const index = 'index' // package.json
{
"name": "webpack-concat-plugin-webpack-1-test",
"version": "1.0.0",
"description": "",
"main": "src/index.js",
"dependencies": {
"webpack": "^1.15.0",
"webpack-dev-server": "^3.1.10"
},
"devDependencies": {
"assets-webpack-plugin": "^3.9.7",
"webpack-merge-and-include-globally": "^2.1.5"
},
"scripts": {
"build": "webpack"
},
"author": "",
"license": "ISC"
} // webpack.config.js
const AssetsPlugin = require('assets-webpack-plugin');
const MergeIntoSingleFilePlugin = require('webpack-merge-and-include-globally');
var assetsPluginInstance = new AssetsPlugin();
module.exports = {
entry: './src/index.js',
output: {
filename: './bundle.js'
},
plugins: [
new AddAssetPlugin('file.js', `
new MergeIntoSingleFilePlugin({
files: {
'yeahScienceMath.js': [
'./src/*.js'
],
},
}),
assetsPluginInstance
]
}; on running webpack {"main":{"js":"./bundle.js"},"":{"js":["yeahScienceMath.js"]}} I have no idea why it isn't working in my project 😅 |
does |
The new file gets generated fine and gets served well ( over local dev server ). But the file does not seem to get updated in the webpack stats in the
assets
. I check this usingassets-webpack-plugin
.I googled around if it was a webpack thingy, but couldn't pin point. Perhaps someone could help?
@markshapiro
The text was updated successfully, but these errors were encountered: