Skip to content

Commit 2f08a16

Browse files
authored
Merge pull request #547 from SolidOS/cdn
fixing Automatic publicPath is not supported
2 parents 672e55e + 7e13754 commit 2f08a16

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

webpack.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@ const HtmlWebpackPlugin = require('html-webpack-plugin')
33

44
// module.exports = [{
55
module.exports = (env, args) => {
6-
const production = args.mode === 'production';
6+
const production = args.mode === 'production'
77
return {
8-
// mode: 'development',
98
mode: args.mode || 'development',
109
entry: './lib/index.js',
1110
output: {
1211
path: path.join(__dirname, '/dist/'),
12+
publicPath: '',
1313
filename: production ? 'solid-ui.min.js' : 'solid-ui.js',
1414
library: 'solid-ui',
1515
libraryTarget: 'umd'
1616
},
1717
plugins: [
18-
new HtmlWebpackPlugin() // plugin that creats in /lib the index.html that contains the webpack-bundle.js
18+
new HtmlWebpackPlugin() // plugin that creates in /lib the index.html that contains the webpack-bundle.js
1919
],
2020
externals: {
2121
fs: 'null',

0 commit comments

Comments
 (0)