Coder Social home page Coder Social logo

Comments (7)

fqborges avatar fqborges commented on May 23, 2024 2

fixed on 0.0.5

from webpack-fix-style-only-entries.

dvlden avatar dvlden commented on May 23, 2024 1

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.

fqborges avatar fqborges commented on May 23, 2024 1

@brettsmason thanks so much. Exactly what I need. I will get your repository and look at this asap.

from webpack-fix-style-only-entries.

fqborges avatar fqborges commented on May 23, 2024

This is unexpected! Could you provide a example project able to reproduce this?

from webpack-fix-style-only-entries.

fqborges avatar fqborges commented on May 23, 2024

Sorry, misclick.

from webpack-fix-style-only-entries.

arashohadi avatar arashohadi commented on May 23, 2024

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.

brettsmason avatar brettsmason commented on May 23, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.