zoukankan      html  css  js  c++  java
  • 学习中于遇到的问题总结

    1.是webpack 4 后,很多插件都要升级

    DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead
    (node:5080) DeprecationWarning: Tapable.apply is deprecated. Call apply on the plugin directly instead                              70% building 37/37 modules 0 activeE:code
    odevuemy-project
    ode_moduleshtml-webpack-pluginlibcompiler.js:81
            var outputName = compilation.mainTemplate.applyPluginsWaterfall('asset-path', outputOptions.filename,
    

     vue-loader 升级后需要 vueLoaderPlugin 

    2.使用viewport  一定要写user-scalable=no ,如果不写的话,如果页面有横向超出的部分(如文字未换行超出),页面会自动缩小来适应屏幕的框,会使页面变形(页面宽度会自动变大来适应)

    如下:

    如果加上会正常

    wepack 报错:TypeError: __webpack_require__(...) is not a function  很可能是babel 转换时 将插件中的js也转换了。

    test:/.js$/,一定要制定js范围,include :include: [resolve('src'), resolve('test'), resolve('node_modules/webpack-dev-server/client')]

  • 相关阅读:
    移动端兼容性问题解决方案
    h5启动原生APP总结
    前端性能优化
    移动端meta行大全
    CSS3,transform3D立体可拖拽正方体实现原理
    FileReader与FileWriter
    lunix cat tail more等用法
    Scanner用法
    SimpleDateFormat的一些常用用法
    Linux下scp的用法
  • 原文地址:https://www.cnblogs.com/chillaxyw/p/10745062.html
Copyright © 2011-2022 走看看