Advertisement
Guest User

Untitled

a guest
Dec 7th, 2015
2,016
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 1.29 KB | None | 0 0
  1. const BowerWebpackPlugin = require("bower-webpack-plugin");
  2.  
  3. module.exports = {
  4.     entry: './src/script/index.jsx',
  5.     output: {
  6.         filename: 'bundle.js',
  7.         sourceMapFilename: "[file].map",
  8.         publicPath: 'http://localhost:8090/assets'
  9.     },
  10.     debug: true,
  11.     devtool: 'inline-source-map',
  12.     module: {
  13.         loaders: [
  14.             {  
  15.                 test: /\.js[x]?$/,
  16.                 loaders: ['react-hot', 'babel'],
  17.                 exclude: /node_modules/
  18.               },
  19.               {
  20.                 test: /\.scss$/,
  21.                 loaders: [ 'style', 'css?sourceMap', 'sass?sourceMap' ]
  22.               },
  23.               {
  24.                 test: /\.less$/,
  25.                 loaders: [ 'style', 'css?sourceMap', 'less?sourceMap' ]
  26.               },
  27.               {
  28.                 test: /\.css$/,
  29.                 loaders: [ 'style', 'css']
  30.               },
  31.               { test: /\.woff$/, loader: "url-loader?limit=10000&mimetype=application/font-woff" },
  32.               { test: /\.woff2$/, loader: "url-loader?limit=10000&mimetype=application/font-woff2" },
  33.               { test: /\.(eot|ttf|svg|gif|png)$/, loader: "file-loader" }
  34.         ]
  35.     },
  36.     plugins: [
  37.         new BowerWebpackPlugin()
  38.     ],
  39.     resolve: {
  40.         extensions: ['', '.js', '.jsx']
  41.     }
  42. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement