12345678910111213141516171819202122 |
- var path = require('path');
- var webpack = require('webpack');
- var BUILD_DIR = path.resolve(__dirname, 'build');
- module.exports = {
- entry: './js/index.js',
- output: { path: __dirname, filename: 'bundle.js' },
- module: {
- loaders: [
- {
- test: /.jsx?$/,
- loader: 'babel-loader',
- exclude: /node_modules/,
- query: {
- presets: ['es2015', 'react']
- }
- },
- { test: /\.css$/, loader: "style-loader!css-loader?root=." },
- ]
- },
- };
|