build from root. routes in coral-admin menu work

This commit is contained in:
Riley Davis
2016-11-08 09:13:04 -07:00
parent 686d39c47b
commit ed509ad36b
14 changed files with 129 additions and 111 deletions
+1 -4
View File
@@ -1,7 +1,6 @@
const path = require('path')
const fs = require('fs')
const webpack = require('webpack')
const autoprefixer = require('autoprefixer')
const precss = require('precss')
const config = require('./config.json')
@@ -13,8 +12,6 @@ let templateString = fs.readFileSync(path.join(__dirname, 'index.ejs')).toString
templateString = templateString.replace('<%= basePath %>', config.basePath)
fs.writeFileSync(path.join(__dirname, 'public/index.html'), templateString)
console.log(templateString)
module.exports = {
entry: {
'bundle': path.join(__dirname, 'src', 'index')
@@ -27,7 +24,7 @@ module.exports = {
loaders: [
{ test: /.js$/, loader: 'babel', include: path.join(__dirname, 'src'), exclude: /node_modules/ },
{ test: /\.json$/, loaders: 'json', include: __dirname, exclude: /node_modules/ },
{ test: /\.css$/, loaders: ['style-loader', 'css-loader?importLoaders=1', 'postcss-loader'] }
{ test: /.css$/, loaders: ['style-loader', 'css-loader?importLoaders=1', 'postcss-loader'] }
]
},
plugins: [ autoprefixer, precss ],