-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.js
More file actions
38 lines (37 loc) · 819 Bytes
/
webpack.config.js
File metadata and controls
38 lines (37 loc) · 819 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
var path = require("path");
var webpack = require("webpack");
var BowerWebpackPlugin = require("bower-webpack-plugin");
module.exports = {
context: path.resolve(__dirname, "./src"),
entry: "./index.jsx",
output: {
path: path.resolve(__dirname, "./dist"),
filename: "tetris.pack.js"
},
module: {
loaders: [
{
test: /\.jsx?$/,
exclude: /(node_modules|bower_components)/,
loader: 'babel', // 'babel-loader' is also a legal name to reference
query: {
presets: ['es2015']
}
},
{
test: /\.scss$/,
loaders: ["style", "css", "sass"]
}
]
},
sassLoader: {
//includePaths: [path.resolve(__dirname, "./styles")]
},
plugins: [
new webpack.optimize.UglifyJsPlugin({minimize: true}),
new BowerWebpackPlugin(),
new webpack.ProvidePlugin({
$: "jquery"
})
]
};