Skip to content

Instantly share code, notes, and snippets.

@timtan
Created June 13, 2016 06:36
Show Gist options
  • Save timtan/b6e8917ffc518c593965d189ca912424 to your computer and use it in GitHub Desktop.
Save timtan/b6e8917ffc518c593965d189ca912424 to your computer and use it in GitHub Desktop.
"babel-core": "^6.9.1",
"babel-loader": "^6.2.4",
"babel-preset-es2015": "^6.9.0",
"babel-preset-react": "^6.5.0",
"node-sass": "^3.7.0",
"react": "^15.1.0",
"sass-loader": "^3.2.0",
"webpack": "^1.13.1",
"webpack-dev-server": "^1.14.1",
"css-loader": "^0.23.1",
"style-loader": "^0.13.1",
"chai": "^3.5.0",
"echarts": "^3.1.9"
@timtan
Copy link
Author

timtan commented Jun 13, 2016

basick webpack configuation for a simple react application

module.exports = {
    entry: "./www/js/hana.jsx",
    output: {
        path: './www/dist',
        filename: "bundle.js"
    },
    module: {
        loaders: [
            {
                test: /\.scss$/,
                loaders: ["style", "css", "sass"]
            },
            {
                test: /\.js|jsx$/,
                exclude: /(node_modules|bower_components)/,
                loader: 'babel',
                query: {
                    presets: ['es2015', 'react']
                }
            }
        ]

    }
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment