extractTextPlugin.input.js 392 B

12345678910111213141516
  1. let ExtractTextPlugin = require('extract-text-webpack-plugin');
  2. let HTMLWebpackPlugin = require('html-webpack-plugin');
  3. module.export = {
  4. module: {
  5. rules: [
  6. {
  7. test: /\.css$/,
  8. use: ExtractTextPlugin.extract('style-loader', 'css-loader')
  9. }
  10. ]
  11. },
  12. plugins: [
  13. new ExtractTextPlugin("styles.css"),
  14. ]
  15. }