webpack以及loader 加载命令

module.exports={    entry:'./main/main.js',    output:{        path:'./build',        filename:'bundle.js'

    },    module:{        loaders: [            {test: /\.coffee$/, loader: 'coffee--loader'},            {test: /\.less$/, loader: 'style-loader!css-loader!less-loader'}, // use ! to chain loaders            {test: /\.css$/, loader: 'style-loader!css-loader'},            {test: /\.(png|jpg)$/, loader: 'url-loader?limit=8192'} // i        ]    }    ,    resolve:{

        extensions:["",".js",".json","coffee"]

    }

};

$ npm install style-loader css-loader url-loader babel-loader sass-loader file-loader --save-dev
上一篇:【Unity3D与23种设计模式】外观模式(Facade)


下一篇:yii2 advanced版基础部分