Giter Site home page Giter Site logo

webpack4_mpa_demo's Issues

打包之后跳转的HTML路径不对了。404

1.打包之后跳转的HTML路径不对了。404
2.图片的路径问题,开发环境下展示没有问题,打包完之后,图片。背景图就展示不出来了。只有内联的图片能展示出来

不兼容ie8

我把所有的js文件里代码删掉依然不兼容ie8

devtool

devtool 不应该在生产环境配置,应该设为none。 开发环境可以配置

打包之后的问题

按照你现有代码,执行build之后,直接打开index.html,发现跳转的html路径是 ../ 开头的,导致跳转的页面是404

无法支持vue的单页面

按照以往的管理跟新了webpack-cli以后启动没有问题,但是通过引入vue-router,貌似不支持

作为小白的疑惑。

看了整个工程,觉得很高大上,非常之想学习 但是不知道从哪里开始,我想了解一下,这样的webpack工程架构,适用于哪种场景下的项目?大佬可否,细聊一下

几个问题

1.打包之后打开index.html, 控制台报错 Uncaught SyntaxError: Unexpected token <
2.在index.js里面引入的index.scss文件没有效果。样式没有出来

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.