Giter Site home page Giter Site logo

Comments (10)

asiareal avatar asiareal commented on May 31, 2024

没人回复吗

from vue-skeleton-webpack-plugin.

PengXing avatar PengXing commented on May 31, 2024

配置请贴一下

from vue-skeleton-webpack-plugin.

asiareal avatar asiareal commented on May 31, 2024

配置请贴一下

vue.config.js

module.exports = {
  css: {
    // 打开开发阶段有骨架屏样式,但是所有样式无法热加载;关闭开发阶段无法加载骨架屏样式
    extract: true 
  }
}

from vue-skeleton-webpack-plugin.

asiareal avatar asiareal commented on May 31, 2024

官方这个例子即可复现:vue-cli3

from vue-skeleton-webpack-plugin.

PengXing avatar PengXing commented on May 31, 2024

嗯,我本地实验了一下,也改了改代码,webpack4 下 mini-css-extract-plugin 太难用了。。我还真不知道怎么改,把 process.env.NODE_ENV 改成 production 就可以渲染出 css

from vue-skeleton-webpack-plugin.

luobinhang avatar luobinhang commented on May 31, 2024

等待解决中...

from vue-skeleton-webpack-plugin.

CongAn avatar CongAn commented on May 31, 2024

还没解决吗?凉了吗???

from vue-skeleton-webpack-plugin.

heeronchang avatar heeronchang commented on May 31, 2024

嗯,我本地实验了一下,也改了改代码,webpack4 下 mini-css-extract-plugin 太难用了。。我还真不知道怎么改,把 process.env.NODE_ENV 改成 production 就可以渲染出 css

我把 process.env.NODE_ENV 改成 production 还是没有渲染出 css 吖

from vue-skeleton-webpack-plugin.

fimars avatar fimars commented on May 31, 2024

暂时可以在vue-cli中设置css.extract: true来解决

from vue-skeleton-webpack-plugin.

fimars avatar fimars commented on May 31, 2024
// vue.config.js
module.exports = {
  ...
  ...
  css: {
    extract: true
  }
}

from vue-skeleton-webpack-plugin.

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.