1
0
mirror of https://github.com/mgerb/react-starter synced 2026-01-09 16:42:48 +00:00

add workspace settings

This commit is contained in:
2018-04-05 18:35:43 -05:00
parent 3fca3f02b4
commit 4fbd590a0a

View File

@@ -10,7 +10,7 @@ module.exports = {
app: ['babel-polyfill', './app/app.tsx'], app: ['babel-polyfill', './app/app.tsx'],
}, },
output: { output: {
path: path.resolve(__dirname, 'dist'), path: path.resolve(__dirname, './dist'),
filename: '[name].[hash].js', filename: '[name].[hash].js',
}, },
resolve: { resolve: {
@@ -47,6 +47,7 @@ module.exports = {
loader: 'file-loader', loader: 'file-loader',
options: { options: {
name: 'static/[name].[hash].[ext]', name: 'static/[name].[hash].[ext]',
publicPath: './.',
}, },
}, },
], ],
@@ -60,7 +61,7 @@ module.exports = {
}, },
}, },
plugins: [ plugins: [
new CleanWebpackPlugin(['dist'], { new CleanWebpackPlugin(['./dist'], {
verbose: true, verbose: true,
}), }),
new ExtractTextPlugin({ new ExtractTextPlugin({