Add alias for ui and remove SASS support

This commit is contained in:
John Lyon-Smith
2018-02-26 13:08:06 -08:00
parent 37e989fa51
commit 93c1ecb919
24 changed files with 26 additions and 568 deletions

View File

@@ -93,6 +93,7 @@ module.exports = {
'icons': path.join(srcPath, '/assets/icons/'),
'data': path.join(srcPath, '/assets/data/'),
'fonts': path.join(srcPath, '/assets/fonts/'),
'ui': path.join(srcPath, '/ui/'),
'src': srcPath,
},
plugins: [
@@ -163,7 +164,7 @@ module.exports = {
// In production, we use a plugin to extract that CSS to a file, but
// in development "style" loader enables hot editing of CSS.
{
test: /\.(sass|scss)$/,
test: /\.css$/,
use: [
require.resolve('style-loader'),
{
@@ -172,7 +173,6 @@ module.exports = {
importLoaders: 1,
},
},
{ loader: require.resolve('sass-loader'), },
{
loader: require.resolve('postcss-loader'),
options: {

View File

@@ -99,6 +99,7 @@ module.exports = {
'icons': path.join(srcPath, '/assets/icons/'),
'data': path.join(srcPath, '/assets/data/'),
'fonts': path.join(srcPath, '/assets/fonts/'),
'ui': path.join(srcPath, '/ui/'),
'src': srcPath,
},
plugins: [
@@ -172,7 +173,7 @@ module.exports = {
// use the "style" loader inside the async code so CSS from them won't be
// in the main CSS file.
{
test: /\.(sass|scss)$/,
test: /\.css$/,
loader: ExtractTextPlugin.extract(
Object.assign(
{
@@ -191,12 +192,6 @@ module.exports = {
sourceMap: shouldUseSourceMap,
},
},
{
loader: require.resolve('sass-loader'),
options: {
sourceMap: shouldUseSourceMap,
}
},
{
loader: require.resolve('postcss-loader'),
options: {