zoukankan      html  css  js  c++  java
  • You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders

    You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders

    解决:

    var path=require('path')
    /**
     * @author xilh
     * @since 20200524
     * @see https://webpack.js.org/concepts/loaders/
     *      https://webpack.js.org/concepts#loaders
     * 
     * webpack 打包 css 文件
     * 1. 需要安装 style-loader css-loader
     * npm install style-loader css-loader --save-dev
     * npm install file-loader --save-dev
     * 2. 依赖 css 需要这么写:require("style-loader!css-loader!./css/css1.css");
     */
    module.exports={
        entry: './src/main.js',
        mode: 'development',
        output: {
            path: path.resolve(__dirname, './dist'),
            filename: 'bundle.js'
        },
        module: {
            rules: [
                {
                    
                    test: '/.css$/',
                    use: [
                        'style-loader',
                        'css-loader'
                    ]
    
                }
            ]
        }
    }
  • 相关阅读:
    性能测试分类
    monkey命令选项参考
    Hibernate三种状态
    Hibernate 的延迟加载
    JAVA2的三个版本
    缓存
    队列、生产消费模型.html
    socketserver剖析.html
    socketserver 之 recv(1024) 问题!
    粘包问题
  • 原文地址:https://www.cnblogs.com/xiluhua/p/12950429.html
Copyright © 2011-2022 走看看