Corrected the logo problem by adding it to the static files (#708)
This commit is contained in:
parent
3ecb6fb80f
commit
4096a1c0ee
5 changed files with 42 additions and 15 deletions
BIN
client/images/p5js-square-logo.png
Normal file
BIN
client/images/p5js-square-logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
|
@ -8,6 +8,9 @@ import routes from './routes';
|
||||||
|
|
||||||
require('./styles/main.scss');
|
require('./styles/main.scss');
|
||||||
|
|
||||||
|
// Load the p5 png logo, so that webpack will use it
|
||||||
|
require('./images/p5js-square-logo.png');
|
||||||
|
|
||||||
const history = browserHistory;
|
const history = browserHistory;
|
||||||
const initialState = window.__INITIAL_STATE__;
|
const initialState = window.__INITIAL_STATE__;
|
||||||
const store = configureStore(initialState);
|
const store = configureStore(initialState);
|
||||||
|
|
|
@ -45,7 +45,7 @@
|
||||||
"eslint-plugin-jsx-a11y": "^6.0.3",
|
"eslint-plugin-jsx-a11y": "^6.0.3",
|
||||||
"eslint-plugin-react": "^7.7.0",
|
"eslint-plugin-react": "^7.7.0",
|
||||||
"extract-text-webpack-plugin": "^3.0.2",
|
"extract-text-webpack-plugin": "^3.0.2",
|
||||||
"file-loader": "^0.8.5",
|
"file-loader": "^2.0.0",
|
||||||
"node-sass": "^4.9.0",
|
"node-sass": "^4.9.0",
|
||||||
"nodemon": "^1.9.2",
|
"nodemon": "^1.9.2",
|
||||||
"postcss-cssnext": "^2.7.0",
|
"postcss-cssnext": "^2.7.0",
|
||||||
|
|
|
@ -53,7 +53,7 @@ module.exports = [{
|
||||||
options: {
|
options: {
|
||||||
cacheDirectory: true,
|
cacheDirectory: true,
|
||||||
plugins: ['react-hot-loader/babel'],
|
plugins: ['react-hot-loader/babel'],
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
loader: 'eslint-loader'
|
loader: 'eslint-loader'
|
||||||
}]
|
}]
|
||||||
|
@ -67,21 +67,33 @@ module.exports = [{
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
test: /main\.scss$/,
|
test: /main\.scss$/,
|
||||||
loaders: ['style-loader', 'css-loader', 'sass-loader']
|
use: ['style-loader', 'css-loader', 'sass-loader']
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
test: /\.(svg|mp3)$/,
|
test: /\.(svg|mp3)$/,
|
||||||
loader: 'file-loader'
|
use: 'file-loader'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
test: /\.(png)$/,
|
||||||
|
use: {
|
||||||
|
loader: 'file-loader',
|
||||||
|
options: {
|
||||||
|
name: '[name].[ext]',
|
||||||
|
outputPath: 'images/'
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
test: /fonts\/.*\.(eot|svg|ttf|woff|woff2)$/,
|
test: /fonts\/.*\.(eot|svg|ttf|woff|woff2)$/,
|
||||||
loader: 'file-loader'
|
use: 'file-loader'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
test: /_console-feed.scss/,
|
test: /_console-feed.scss/,
|
||||||
loader: 'sass-extract-loader',
|
use: {
|
||||||
options: {
|
loader: 'sass-extract-loader',
|
||||||
plugins: [{ plugin: 'sass-extract-js', options: { camelCase: false } }]
|
options: {
|
||||||
|
plugins: [{ plugin: 'sass-extract-js', options: { camelCase: false } }]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
|
@ -54,7 +54,7 @@ module.exports = [{
|
||||||
},
|
},
|
||||||
|
|
||||||
module: {
|
module: {
|
||||||
loaders: [
|
rules: [
|
||||||
{
|
{
|
||||||
test: /main\.scss$/,
|
test: /main\.scss$/,
|
||||||
exclude: /node_modules/,
|
exclude: /node_modules/,
|
||||||
|
@ -66,21 +66,33 @@ module.exports = [{
|
||||||
{
|
{
|
||||||
test: /\.jsx?$/,
|
test: /\.jsx?$/,
|
||||||
exclude: /node_modules/,
|
exclude: /node_modules/,
|
||||||
loader: 'babel-loader'
|
use: 'babel-loader'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
test: /\.(svg|mp3)$/,
|
test: /\.(svg|mp3)$/,
|
||||||
loader: 'file-loader'
|
use: 'file-loader'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
test: /\.(png)$/,
|
||||||
|
use: {
|
||||||
|
loader: 'file-loader',
|
||||||
|
options: {
|
||||||
|
name: '[name].[ext]',
|
||||||
|
outputPath: 'images/'
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
test: /fonts\/.*\.(eot|svg|ttf|woff|woff2)$/,
|
test: /fonts\/.*\.(eot|svg|ttf|woff|woff2)$/,
|
||||||
loader: 'file-loader'
|
use: 'file-loader'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
test: /_console-feed.scss/,
|
test: /_console-feed.scss/,
|
||||||
loader: 'sass-extract-loader',
|
use: {
|
||||||
options: {
|
loader: 'sass-extract-loader',
|
||||||
plugins: [{ plugin: 'sass-extract-js', options: { camelCase: false } }]
|
options: {
|
||||||
|
plugins: [{ plugin: 'sass-extract-js', options: { camelCase: false } }]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue