Skip to content

Commit cbb405c

Browse files
committed
Silence build warning about CSS import order
The build shows a warning about the CSS import order. However, the warning shouldn't be relevant to us, because the CSS in each component applies only to the component: global styles all live in app.scss. Silencing the warning by changing vue.config.js according to vuejs/vue-cli#3771 (comment) The warning was: chunk component-form-draft-testing~component-form-submissions~component-submission-show [mini-css-extract-plugin] Conflicting order. Following module has been added: * css ./node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--8-oneOf-1-2!./node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!src/components/modal.vue?vue&type=style&index=0&lang=scss& despite it was not able to fulfill desired ordering with these modules: * css ./node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--8-oneOf-1-2!./node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!src/components/markdown/textarea.vue?vue&type=style&index=0&lang=scss& - couldn't fulfill desired order of chunk group(s) component-submission-show - while fulfilling desired order of chunk group(s) component-form-draft-testing, component-form-submissions
1 parent d1f4f3d commit cbb405c

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/components/form-draft/status.vue

+1-3
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,10 @@ import FormDraftChecklist from './checklist.vue';
8585
import FormDraftPublish from './publish.vue';
8686
import FormNew from '../form/new.vue';
8787
import FormVersionStandardButtons from '../form-version/standard-buttons.vue';
88-
// Import PageSection before SummaryItem (in FormVersionSummaryItem) in order to
89-
// have the same import order as other components: see
90-
// https://github.com/vuejs/vue-cli/issues/3771
9188
import PageSection from '../page/section.vue';
9289
import FormVersionSummaryItem from '../form-version/summary-item.vue';
9390
import Loading from '../loading.vue';
91+
9492
import Option from '../../util/option';
9593
import modal from '../../mixins/modal';
9694
import routes from '../../mixins/routes';

src/components/form-draft/testing.vue

-2
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ except according to the terms contained in the LICENSE file.
4949
</template>
5050

5151
<script>
52-
// Import PageSection before FloatRow in order to have the same import order as
53-
// FormSubmissions: see https://github.com/vuejs/vue-cli/issues/3771
5452
import PageSection from '../page/section.vue';
5553
import FloatRow from '../float-row.vue';
5654
import CollectQr from '../collect-qr.vue';

vue.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ including this file, may be copied, modified, propagated, or distributed
1010
except according to the terms contained in the LICENSE file.
1111
*/
1212
module.exports = {
13+
css: {
14+
extract: { ignoreOrder: true }
15+
},
1316
chainWebpack: (config) => {
1417
config.module
1518
.rule('json5')

0 commit comments

Comments
 (0)