We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 910b6bc commit eb5565bCopy full SHA for eb5565b
test/WebpackConfig.js
@@ -105,13 +105,12 @@ describe('WebpackConfig object', () => {
105
}).to.throw('The value passed to setPublicPath() must start with "/"');
106
});
107
108
- it('Setting to a URL when using devServer throws an error', () => {
+ it('You can set to a URL when using devServer', () => {
109
const config = createConfig();
110
config.runtimeConfig.useDevServer = true;
111
+ config.setPublicPath('https://examplecdn.com');
112
- expect(() => {
113
- config.setPublicPath('https://examplecdn.com');
114
- }).to.throw('You cannot pass an absolute URL to setPublicPath() and use the dev-server');
+ expect(config.publicPath).to.equal('https://examplecdn.com/');
115
116
117
0 commit comments