mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-15 22:56:42 +00:00
Fix for stylesheet split
This commit is contained in:
parent
7a77f7b3bb
commit
0a678cf377
|
@ -1,14 +1,15 @@
|
|||
// Package imports //
|
||||
// Package imports
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes';
|
||||
import { injectIntl, defineMessages, FormattedMessage } from 'react-intl';
|
||||
|
||||
import './stylesheet';
|
||||
|
||||
// Our imports //
|
||||
// Our imports
|
||||
import SettingsItem from './item';
|
||||
|
||||
// Stylesheet imports
|
||||
import './style';
|
||||
|
||||
const messages = defineMessages({
|
||||
layout_auto: { id: 'layout.auto', defaultMessage: 'Auto' },
|
||||
layout_desktop: { id: 'layout.desktop', defaultMessage: 'Desktop' },
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
%script#initial-state{ type: 'application/json' }!= json_escape(@initial_state_json)
|
||||
|
||||
= javascript_pack_tag 'application', integrity: true, crossorigin: 'anonymous'
|
||||
= stylesheet_pack_tag 'application', media: 'all'
|
||||
|
||||
.app-holder#mastodon{ data: { props: Oj.dump(default_props) } }
|
||||
%noscript
|
||||
|
|
|
@ -44,7 +44,10 @@ module.exports = {
|
|||
|
||||
plugins: [
|
||||
new webpack.EnvironmentPlugin(JSON.parse(JSON.stringify(env))),
|
||||
new ExtractTextPlugin(env.NODE_ENV === 'production' ? '[name]-[hash].css' : '[name].css'),
|
||||
new ExtractTextPlugin({
|
||||
filename: env.NODE_ENV === 'production' ? '[name]-[hash].css' : '[name].css',
|
||||
allChunks: true,
|
||||
}),
|
||||
new ManifestPlugin({
|
||||
publicPath: output.publicPath,
|
||||
writeToFileEmit: true,
|
||||
|
|
Loading…
Reference in a new issue