-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.js
More file actions
30 lines (29 loc) · 844 Bytes
/
Copy pathwebpack.config.js
File metadata and controls
30 lines (29 loc) · 844 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
var ExtractTextPlugin = require("extract-text-webpack-plugin");
module.exports = {
entry: ["babel-polyfill","./index.js"],
output: {
filename: "./dist/js/bundle.js"
},
module: {
loaders: [
{
test: /\.js$/,
exclude: /node_modules/,
loader: "babel"
},
{
test: /\.css$/,
loader: ExtractTextPlugin.extract("style-loader","css-loader")
},
{
// Extract scss files
test: /\.scss$/,
loader: ExtractTextPlugin.extract("style-loader","css-loader!sass-loader")
}
]
},
plugins: [
// Use plugin to specify resulting filename of bundled css
new ExtractTextPlugin("dist/css/style.css")
]
};