This repository was archived by the owner on Apr 6, 2020. It is now read-only.
This repository was archived by the owner on Apr 6, 2020. It is now read-only.
How to @import in vue.style-tag #13
Closed
Description
Version
webpack@3.10.0
vue@2.6.3
sass-loader@7.1.0
tui-editor@1.3.0
Current Behavior
<style lang="scss" scoped>
@import 'tui-editor/dist/tui-editor.css';
@import 'tui-editor/dist/tui-editor-contents.css';
@import 'codemirror/lib/codemirror.css';
</style>
<script>
import {
Editor
} from '@toast-ui/vue-editor'
...
</script>
but,
ERROR in ./node_modules/extract-text-webpack-plugin/dist/loader.js?{"omit":1,"remove":true}!./node_modules/vue-style-loader!./node_modules/css-loader?sourceMap!./node_modules/vue-loader/lib/style-compiler?{"optionsId":"0","vue":true,"id":"data-v-69049a82","scoped":true,"sourceMap":true}!./node_modules/sass-loader/lib/loader.js!./node_modules/vue-loader/lib/selector.js?type=styles&index=0!
Module build failed: ModuleNotFoundError: Module not found: Error: Can't resolve './tui-editor-2x.png'
Expected Behavior
Not import script-tag like example.
I wish import in style-tag.
Metadata
Metadata
Assignees
Labels
No labels