This repository has been archived by the owner on Jul 19, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 363
Compile .vue files with Slate #871
Labels
Comments
I have Vue working by adding the following to my slate.config.js file module.exports = {
'cssVarLoader.liquidPath': ['src/snippets/css-variables.liquid'],
'webpack.extend': merge([
{
resolve: {
alias: {
'vue$': 'vue/dist/vue.esm.js'
jquery: path.resolve('./node_modules/jquery'),
'lodash-es': path.resolve('./node_modules/lodash-es'),
},
extensions: ['*', '.js', '.vue', '.json']
},
},
{
module: {
rules: [
{
test: /\.vue$/,
loader: 'vue-loader'
}
]
},
plugins: [
// make sure to include the plugin!
new VueLoaderPlugin()
]
}
]),
} |
awesome ! Just had to yarn add webpack-merge vue-template-compiler now it works ! Thanks @jaydensmith |
We are already using webpack-merge to merge in the value passed via |
It breaks since the vue loader must come before babel and hmr, please allow an option to use webpack extend instead of webpack, maybe give an option to overwrite the webpack file, and expose a function to get the default configurations? it will be much more convinient to use.
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I would love to be able to use Slate to build a theme using Vue.js, graphql and Shopify storefront api !
But it seems Slate can't compile .vue files yet.
I get the following error.
Also tried to implement vue loader https://github.com/vuejs/vue-loader in slate config
But i was unsuccessful.
I saw topics mentioning this but I am opening one to put the focus on vue.
Or if anyone has feedbacks.
Thanks
The text was updated successfully, but these errors were encountered: