Fixing UI and frontend compilation

This commit is contained in:
Tom Gallacher 2017-01-18 12:39:28 +00:00
parent 116f806d8f
commit abd113d009
3 changed files with 10 additions and 8 deletions

View File

@ -50,7 +50,7 @@ module.exports = {
],
loaders: [
'babel-loader'
]
],
}, {
test: /\.json?$/,
exclude: /node_modules/,
@ -60,7 +60,7 @@ module.exports = {
],
loaders: [
'json-loader'
]
],
}, {
test: /\.png/,
exclude: /node_modules/,
@ -68,18 +68,19 @@ module.exports = {
FRONTEND,
UI
],
loader: [
loaders: [
'url-loader'
]
],
},
{
test: /\.(eot|svg|ttf|woff|woff2)$/,
exclude: /node_modules/,
loader: 'file-loader',
include: [
FRONTEND,
UI
]
],
loaders: [
'file-loader'
],
}]
}
};

View File

@ -3,7 +3,7 @@ const base = require('./base');
module.exports = Object.assign(base, {
devtool: 'hidden-source-map',
devtool: 'eval-source-map',
entry: [
base.entry
],

View File

@ -41,6 +41,7 @@ install-production: compile clean
.PHONY: compile
compile: install
cp -R src/ dist/.
$(bindir)/babel src --out-dir dist --source-maps inline
.PHONY: build