Skip to content

Commit

Permalink
Merge 463f6fb into 1d4ea53
Browse files Browse the repository at this point in the history
  • Loading branch information
thijstriemstra committed Sep 24, 2018
2 parents 1d4ea53 + 463f6fb commit f8162f9
Show file tree
Hide file tree
Showing 6 changed files with 167 additions and 284 deletions.
10 changes: 1 addition & 9 deletions .eslintrc.json
Expand Up @@ -34,13 +34,5 @@
"keyword-spacing": ["error", { "before": true }],
"space-infix-ops": 2,
"prefer-arrow-callback": 2
},
"overrides": [
{
"files": ["test-*.js", "*.spec.js"],
"rules": {
"prefer-arrow-callback": "off"
}
}
]
}
}
5 changes: 4 additions & 1 deletion build-config/fragments/common.js
Expand Up @@ -34,7 +34,7 @@ var cssBannerPlugin = new webpack.BannerPlugin({

// inject JS version number
var jsVersionPlugin = new webpack.DefinePlugin({
'__VERSION__': JSON.stringify(pckg.version)
'__VERSION__': JSON.stringify(pckg.version)
});

var rootDir = path.resolve(__dirname, '..', '..');
Expand All @@ -58,6 +58,7 @@ module.exports = {
module: {
rules: [
{
// javascript
test: /\.js$/,
include: path.resolve(rootDir, 'src', 'js'),
exclude: /(node_modules|bower_components|test)/,
Expand All @@ -66,8 +67,10 @@ module.exports = {
}
},
{
// scss
test: /\.scss$/,
include: path.resolve(rootDir, 'src', 'css'),
exclude: /(node_modules|bower_components|test)/,
use: [
MiniCssExtractPlugin.loader,
'css-loader',
Expand Down
10 changes: 8 additions & 2 deletions build-config/fragments/dev.js
Expand Up @@ -6,13 +6,19 @@
const path = require('path');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');

const contentBase = path.resolve(__dirname, '..', '..');

module.exports = {
mode: 'development',
devtool: 'source-map',
devServer: {
contentBase: [path.resolve(__dirname, '..', '..')],
contentBase: [contentBase],
publicPath: 'localhost:8080/dist/',
watchContentBase: true
watchContentBase: true,
watchOptions: {
ignored: ['.chrome', 'node_modules', 'bower_components',
'coverage']
}
},
plugins: [
new MiniCssExtractPlugin({
Expand Down

0 comments on commit f8162f9

Please sign in to comment.