2017-08-10 08:02:20 -06:00
|
|
|
var devServerPort = 3808;
|
2017-08-09 13:20:21 -06:00
|
|
|
module.exports = function (config) {
|
|
|
|
config
|
|
|
|
.module
|
|
|
|
.rules
|
|
|
|
.push({
|
|
|
|
test: [/\.scss$/, /\.css$/],
|
|
|
|
use: ["style-loader", "css-loader", "sass-loader"]
|
|
|
|
});
|
|
|
|
config.devServer = {
|
|
|
|
port: devServerPort,
|
|
|
|
headers: { 'Access-Control-Allow-Origin': '*' }
|
|
|
|
};
|
|
|
|
config.output.publicPath = '//localhost:' + devServerPort + '/webpack/';
|
|
|
|
}
|