-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not working yarn.lock URLs #1
Comments
Sorry, I have changed the registry, could you try again? |
Yes it works, thank you! By the way, I tried to merge your configuration with mine but I'm still unable to extract the CSS lines into separate files. They are still embedded in the HTML 😢 Here is my
I see 2 possibilities:
Thank you, EDIT: I just noticed you were not using |
I think your configureWebpack: (config) => {
// Settings from the sample https://github.com/lovetingyuan/vue-ssr-example/blob/master/vue.config.js
return { // you need return this.
// ...config, // no need to merge config.
target: 'node',
devtool: 'source-map',
node: false,
output: {
libraryTarget: 'commonjs2'
},
externals: nodeExternals({
whitelist: /\.(css|svg)$/
}),
optimization: {
minimize: false,
splitChunks: false
},
plugins: [
new VueSSRServerPlugin()
],
};
} By the way, |
@lovetingyuan at the end I ended using my own fork with a specific PR that I was waiting for to make it working with my settings. You can find my comment here: Akryum/vue-cli-plugin-ssr#191 (comment) Thank you for answering me 👍 |
Hi @lovetingyuan ,
Note that I was not able to run
yarn install
because of a network issue:I succeeded by removing the
yarn.lock
since this one was pointing tohttps://registry.npm.taobao.org
registry instead ofhttps://registry.yarnpkg.com
or the official NPM one. (it seems not reachable from Europe ?)I will give a try to your settings to minify CSS and extract it in other files :)
The text was updated successfully, but these errors were encountered: