Skip to content
This repository has been archived by the owner on Oct 7, 2019. It is now read-only.

Commit

Permalink
[dvan] build directory change to __assets
Browse files Browse the repository at this point in the history
  • Loading branch information
2nthony committed Nov 17, 2018
1 parent 2f577a8 commit 1333a9d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/dvan/lib/plugins/base.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ exports.extend = api => {

config.output
.filename(
require('upath').join('assets', 'js', '[name].[chunkhash:6].js')
require('upath').join('__assets', 'js', '[name].[chunkhash:6].js')
)
.publicPath(api.config.publicPath)
.path(api.resolve(api.config.outDir))
Expand Down
2 changes: 1 addition & 1 deletion packages/dvan/lib/webpack/rules/css.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ module.exports = (config, api, isServer) => {
if (shouldExtractCSS) {
config.plugin('css-extract').use('mini-css-extract-plugin', [
{
filename: path.join('assets', 'css', 'styles.[chunkhash:6].css')
filename: path.join('__assets', 'css', 'styles.[chunkhash:6].css')
}
])
}
Expand Down
2 changes: 1 addition & 1 deletion packages/dvan/lib/webpack/rules/media.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = config => {
.options(
Object.assign(
{
name: path.join('assets', type, '[name].[hash:6].[ext]')
name: path.join('__assets', type, '[name].[hash:6].[ext]')
},
loader === 'url-loader' ? { limit: inlineMaxLimit } : {}
)
Expand Down

0 comments on commit 1333a9d

Please sign in to comment.