Last active
September 5, 2015 21:20
-
-
Save D1plo1d/2f26223cb4a62733c358 to your computer and use it in GitHub Desktop.
Frig + React + Webpack Starter Pack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "resume", | |
"version": "0.0.1", | |
"private": true, | |
"dependencies": { | |
"coffee-script": "1.9.3", | |
"webpack": "*", | |
"webpack-dev-server": "*", | |
"css-loader": "*", | |
"style-loader": "*", | |
"stylus-loader": "*", | |
"extract-text-webpack-plugin": "*", | |
"babel-loader": "*", | |
"babel-core": "5.8.20", | |
"coffee-loader": "*", | |
"jade-loader": "*", | |
"url-loader": "*", | |
"jsx-loader": "*", | |
"eslint-loader": "git+https://github.com/MoOx/eslint-loader.git#master", | |
"eslint": "*", | |
"babel-eslint": "*", | |
"lodash": "*", | |
"react": "0.13.3", | |
"classnames": "*", | |
"frig": "git+https://github.com/frig-js/frig.git#develop", | |
"frigging-bootstrap": "git+https://github.com/frig-js/frigging-bootstrap.git#develop" | |
}, | |
"engines": { | |
"node": "~0.12.x", | |
"npm": "2.7.x" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
path = require "path" | |
webpack = require "webpack" | |
module.exports = | |
entry: "./src/javascripts/index.js" | |
output: | |
path: "./src/" | |
filename: "index.js" | |
devtool: "inline-source-map" | |
resolve: | |
root: [ | |
path.join(__dirname, "src", "javascripts") | |
path.join(__dirname, "src", "stylesheets") | |
] | |
module: | |
loaders: [ | |
{ | |
test: /\.styl$/ | |
loader: "style-loader!css-loader!stylus-loader" | |
} | |
{ | |
test: /\.coffee$/ | |
loader: "coffee" | |
} | |
{ | |
test: /\.jsx?$/ | |
exclude: /^(node_modules|dist|scripts)/ | |
loader: "babel?stage=0" | |
} | |
{ | |
test: /\.woff($|\?)|\.woff2($|\?)|\.ttf($|\?)|\.eot($|\?)|\.svg($|\?)/, | |
loader: "url-loader" | |
} | |
] | |
plugins: [] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment