Comments (7)
fixed on 0.0.5
from webpack-fix-style-only-entries.
I am using this plugin with Vue CLI v3 and it works perfectly fine.
Here's my vue.config.js
file. It might help someone...
note: by default there's main.js
file pointed as app entry
, so we don't specify this one within config, as we're extending it.
const FixStyleOnlyEntries = require('webpack-fix-style-only-entries')
module.exports = {
chainWebpack: config => {
config
.entry('app')
.add('./src/assets/styles/app.scss')
.end()
.entry('vendor')
.add('./src/assets/styles/vendor.scss')
.end()
},
configureWebpack: {
plugins: [
new FixStyleOnlyEntries()
]
}
}
Thank you for making this plugin @fqborges - starred. ⭐️
from webpack-fix-style-only-entries.
@brettsmason thanks so much. Exactly what I need. I will get your repository and look at this asap.
from webpack-fix-style-only-entries.
This is unexpected! Could you provide a example project able to reproduce this?
from webpack-fix-style-only-entries.
Sorry, misclick.
from webpack-fix-style-only-entries.
This happens to me as well if I have an entry with only one .js file. If I add another one, the plugin does not remove the file.
File app.js is removed
app: [ './js/app.js' ],
File app.js is not removed
app: [ './js/app.js', './js/anotherFile.js', ],
This only happens on a production build/mode, not while in development mode.
from webpack-fix-style-only-entries.
@fqborges Thanks for the great plugin 😄
I too have encountered this issue. Take a look at this branch for an example: https://github.com/brettsmason/luxe/tree/webpackv2
I have noticed when running npm run dev
the file app.js
is present in the public/js
folder, but if running npm run production
the file is not there.
Not sure if this helps narrow the issue down or not?
from webpack-fix-style-only-entries.
Related Issues (20)
- Use report ProgressPlugin instead of printing to console
- Support HMR and miscellaneous non-JS entries HOT 3
- Causing error in webpack profile output HOT 2
- miniCssExtractPlugin && browsersync - help needed HOT 2
- Does not delete js files... HOT 9
- Does not properly handle extensions with "resourceQuery"
- Not working for dynamically imported css? HOT 2
- Handle .mjs extension removal from style only entry HOT 2
- Removing required js files as well HOT 4
- Does not remove style only entries when running webpack in watch mode HOT 1
- No ❤️ for Stylus or SASS? HOT 1
- Wrong JS file is removed. HOT 1
- Could you please add a License? HOT 1
- Webpack 5 warnings HOT 9
- Release notes HOT 3
- [email protected] causes Maximum call stack size exceeded Error HOT 3
- Array of module-exports in `webpack.config.js` messes up `_entryResourcesCache`
- Webpack 5.1.3 chunk.files.delete HOT 6
- Error: Module.indexThere was no ModuleGraph assigned to the Module for backward-compat (Use the new API) HOT 2
- Removes required JS files too HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webpack-fix-style-only-entries.