2018-01-08 12:29:49 +00:00
|
|
|
const path = require('path');
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
entry: './index.js',
|
|
|
|
devtool: 'inline-source-map',
|
|
|
|
output: {
|
|
|
|
filename: './js/bundle.js',
|
|
|
|
publicPath: '/'
|
2018-01-15 11:54:54 +00:00
|
|
|
},
|
2018-01-08 12:29:49 +00:00
|
|
|
module: {
|
|
|
|
rules: [{
|
|
|
|
test: /\.scss$/,
|
|
|
|
use: [
|
2018-01-23 08:00:08 +00:00
|
|
|
{
|
|
|
|
loader: 'style-loader'
|
2018-01-08 12:29:49 +00:00
|
|
|
},
|
2018-01-23 08:00:08 +00:00
|
|
|
{
|
|
|
|
loader: 'postcss-loader', // Run post css actions
|
|
|
|
options: {
|
|
|
|
plugins: function () { // post css plugins, can be exported to postcss.config.js
|
|
|
|
return [
|
|
|
|
require('precss'),
|
|
|
|
require('autoprefixer')
|
|
|
|
];
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
loader: "sass-loader", // compiles Sass to CSS
|
|
|
|
options: {
|
|
|
|
includePaths: ["node_modules", "./client/scss"]
|
|
|
|
}
|
|
|
|
}]
|
2018-01-15 11:54:54 +00:00
|
|
|
}]
|
|
|
|
}
|
2018-01-08 12:29:49 +00:00
|
|
|
};
|